- 博客(4)
- 收藏
- 关注
原创 排序与转换
#include<stdio.h>void main() { int temp; int n,i,j, aaa[5] = {'\0'}; int bbb[26]; scanf_s("%d", &n); for (i = 0; i < n; i++) scanf_s("%d", &aaa[i]); for(i=0;i<n;i++) for(j=i;j<n;j++) if (aaa[i] > aaa[j]) { te
2021-02-18 20:58:39 112
原创 C语言 排序
排序:#include<stdio.h>void main(){int temp;int n,i,j, aaa[5] = {‘\0’};scanf_s("%d", &n);for (i = 0; i < n; i++)scanf_s("%d", &aaa[i]);for(i=0;i<n;i++)for(j=i;j<n;j++) (j=0 —> j=i (使代码更简洁 省一半计算量))if (aaa[i
2021-02-16 22:54:43 71
原创 C语言 存
存:#include<stdio.h>void main(){int n;int aaa[100];scanf_s("%d", &n);for (int i = 0; i < n; i++)scanf_s("%d", &aaa[i]);for (int i = 0; i < n; i++)printf("%d ", aaa[i]);}
2021-02-16 22:53:34 163
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人