下面程序错误的语句是 ①#include < iostream.h> ②void main( 0 ③{ ④ int * p = new int[1] ; ⑤ p =9; ⑥ cout <<*p <<end1; ⑦ delete [ ] p; ⑧ }
A.④
B.⑤
C.⑥
D.⑦
[单选题]下面程序错误的语句是①include ②void main()③{④int * p=new int[1]⑤p=9⑥cout<<* p<下面程序错误的语句是①#include<iostream.h>②void main()③{④ int * p=new int[1]⑤ p=9⑥ cout<<* p<<end1;⑦ delete []p;⑧}A.④B.⑤C.⑥D.⑦
[单选题]下面程序错误的语句是 ① include ② void main( ) ③ { ④ int * p=new int[1] ; ⑤ p下面程序错误的语句是① #include<iostream.h>② void main( )③ {④ int * p=new int[1] ;⑤ p=9;⑥ cout < < * p < <endl;⑦ delete[ ] p;⑧ }A.④B.⑤C.⑥D.⑦
[单选题]下面的程序中,错误的语句是( )。 ①inClude②void main ③{ ④ int *p=new int[1]; ⑧P=9; ⑥cout<<.*P<<endl; ⑦delete[]p; ⑧}A.④B.⑤C.⑥D.⑦
[主观题]阅读下面程序: include void main() { int i,j,row=0,column=0,m; static int a[3]阅读下面程序:include <iostream.h>void main(){int i,j,row=0,column=0,m;static int a[3][3]={ 100,28,72,-30,2,-100};m=a[0][0];for (i=0;i<3;i++)for (j=0;j<3;j++)if (a[i][j]<m){m=a[i][j];ro
[单选题]下面程序的运行结果是 include Void main( ) { int num=1; int &ref=num;ref=下面程序的运行结果是#include<iostream.h>Void main( ){int num=1;int &ref=num;ref=ref+2;cout < < num;num=num+3;cout < < ref < <endl;}A.13B.16C.36D.33
[单选题]下面程序的运行结果是 include void main( ) { int i=1; while(i <=8) if(£«£«i%3!下面程序的运行结果是#include<iostream.h>void main( ){int i=1;while(i <=8)if(++i%3!=2) continue;else cout < < i;}A.25B.36C.258D.369
[单选题]下面程序输出的结果是 include void main( ) { int i; int a[3][3]={1,2,下面程序输出的结果是 #include<iostream.h> void main( ) { int i; int a[3][3]={1,2,3,4,5,6,7,8,9}; for(i=0;i<3;i++) cout<<a[i][i]<<" ";}A.1 5 9B.7 5 3C.3 5 7D.5 9 1
[单选题]下面程序错误的语句是 #include"iostream.h" ① void main() ② { ③ int A=0; ④ int&B; ⑤ B=A; ⑥ cout<<B; ⑦ cout<<A; ⑧ }A.②B.③C.④D.⑥
[单选题]下面程序错误的语句是 #include"iostream.h" ① void main() ② { ③ int A=0; ④ int & B; ⑤ B=A ⑥ cout<<B; ⑦ cout<<A; ⑧ }A.②B.③C.④D.⑥
[单选题]以下程序的输出结果是include void main(){ int a=0,i; for(i=1;i<5;i£«£«) {swich (以下程序的输出结果是 #include<iostream.h> void main() { int a=0,i; for(i=1;i<5;i++) { swich (i) { case 0: case 3:a+=2; case 1: case 2:a+=3; default:a+=5; } } cout<<a<<endl; return; }A.31B.13C