摘要: 数组作为函数易错点解析、数组作为参数被传递,以及随机数的使用。 1 #include 2 #include 3 4 #define N 8 5 6 //将数组作为参数进行传递 7 //产生随机数的方式:包含库stdlib.h,然后在需要使用随机数的地方,用rand(),就可以了 8 void ssort (int arr[],int n) 9 {10 int i,j;11 int temp;12 int flag;13 for(i = 0;i arr[j+1] )19 {20 temp ... 阅读全文
posted @ 2013-10-13 13:22 月下岳上 阅读(206) 评论(0) 推荐(0) 编辑