摘要: 1 #include 2 #define ARR_SIZE 10 3 void MaxMinExchang(int *a, int n);//加了函数声明 4 int main() { 5 int a[ARR_SIZE], i, n; 6 printf("Input n(n maxValue) { 25 maxValue = a[i];... 阅读全文
posted @ 2019-04-02 14:21 nefuer 阅读(137) 评论(0) 推荐(0)
摘要: 1 #include 2 #include 3 #define N 5 4 int n; 5 int a[N][N]; 6 void show(){ 7 int i, j; 8 for(i=0; i<n; i++){ 9 for(j=0; j<n; j++){ 10 printf("%3d", a[i][j]); 11 ... 阅读全文
posted @ 2019-04-02 14:12 nefuer 阅读(127) 评论(0) 推荐(0)
摘要: 1 #include 2 #include 3 float f(float x){ 4 return (x*x*x-x-1); 5 } 6 int main(){ 7 float x1, x2; 8 scanf("%f,%f", &x1, &x2); 9 10 float cen=(x1+x2)/2.0; 11 float vc... 阅读全文
posted @ 2019-04-02 13:52 nefuer 阅读(323) 评论(0) 推荐(0)