下面程序有注释的语句中,错误的语句是( )。 #include <iostream> using namespace std; class A{ int a; public: void show A(){cout<<"this is A!";} }; class B:public A{ int b; public: void show B(){cout<< "this is B!";} }; void main(){ A ia,*piA; B ib,*piB; piA=ia; //第一个测试语句 piA=&ib; //第二个测试语句 piA->showA(); //第三个测试语句 piA->showB(); //第四个测试语句 }
A.第一个测试语句
B.第二个测试语句
C.第三个测试语句
D.第四个测试语句
[单选题]下面程序错误的语句是①#include②void main()③{④int*p=new int[1];⑤p=9;⑥cout <<*p<⑦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<下面程序错误的语句是①#include<iostream.h>②void main()③{④ int * p=new int[1]⑤ p=9⑥ cout<<* p<<end1;⑦ delete []p;⑧}A.④B.⑤C.⑥D.⑦
[单选题]下列程序中划线处正确的语句是()。 include using namespace std;class Base{public:v下列程序中划线处正确的语句是( )。 # include <iostream> using namespace std; class Base { public: void fun(){cout<<"Base:: fun" <<endl;} }; class Derived:public Base { void fun() { ______ ∥显式调用基类的函数f
[单选题]下面程序错误的语句是①include ②void main( 0③{④int * p = new int[1] ;⑤p =9;⑥co下面程序错误的语句是 ①#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<<endl; ⑦delete[]p; ⑧}A.④B.⑤C.⑥D.⑦
[单选题]在下面的语句中,赋值语句错误的是_______。A.a=(b=(c=2,d=3));B.i++;C.a=a/b=2;D.a=a<a+1;
[单选题]下面语句中错误的是 ( )A.ReDim Preserve Matrix(10, UBound(Matrix, 2)+1)B.ReDim Preserve Matrix(UBound(Matrix, 1)-4-1, 10)C.ReDim Preserve DynArray(UBound(DynArray)+1)D.ReDim DynArray(UBound(DynArray)+1)
[单选题]下面语句中错误的是A.ReDim Preserve x(10,Ubound(x,2)+1)B.ReDim Preserve x(Ubound(x,1)+1,10)C.ReDim Preserve y(Ubound(y)+1)D.ReDim y(Ubound(y)+1)
[多选题] 下面语句中,是伪指令语句的有()。A . CMP AX,CXB . DB?C . IDIV CXD . ORG 30HE . DATA SEGMENT