public class TestArray { public static void main(String[] args) { /** 数组声明及动态初始化 int a[] = new int[args.length]; for (int i=0;i<args.length;i++){ a[i] = Integer.parseInt(args[i]); } **/ //静态初始化 int a[] = {9,8,1,3,7,5,4,2,6}; print(a); bubbleSort(a);
#include <stdio.h> #define sum 3+4//宏定义是原封不动的使用used for test4 #include <time.h>//used for test8~9 #include <stdlib.h>//used for test8~9 void test(){//数组输出 //int a[5]={1,2,3,4,5}; printf("array output,look,please...\n"); int a[1