你可能感兴趣的试题
int[]arr=newint[10,20] int[]arr=intnew[10,20] int[,]arr=newint[10,20] int[,]arr=newint[20;10]
编译时将产生错误 编译时正确,运行时将产生错误 输出为0 输出为空
产生随机数时不使用Int函数 循环2的初始值应为i=x 数组定义改为Dim a(11) as integer 循环3是循环终值应改为9
arr[0]==0 arr[0]==1 arr[1]==1 arr[2]==0
Int(Rnd*99+1) In arr Int(Rn In arr Int(Rnd*99+1) In arr() Int(Rn In arr()
Int(Rnd*99+1) In arr Int (Rn In arr Int(Rnd*99+1) In arr() Int(Rn In arr()
cout << *arr+1 <cout << *(arr+1)<cout << arr[1] <cout << *arr <
cout<<*arr+1<<endl; cout<<*(arr+1)<<endl; cout<<arr[1]<<endl; cout<<*arr<<endl;
cout<<*arr+1<<endl; tout<<*(arr+1)<<endl; cout<<arr[1]<<endl; eout<<%arr<<endl;
Int(Rnd*99+1) In arr Int(Rn In arr Int(Rnd*99+1) In arr() Int(Rn In arr()
Int(Rnd*99+1) In arr Int(Rnd) In arr Int(Rnd*99+1) In arr() Int(Rnd) In arr()
cout<<*arr+1<<endl; tout<<*(arr+1)<<endl; cout<<arr[1]<<endl; eout<<%arr<<endl;
cout<<*arr+1<<end1; cout<<*(art+1)<<end1; cout<<arr[1]<<end1; cout<<*arr<<end1;