题目内容

商品经济中有许多经济规律。其中,( )是基本的规律。

A. 宏观调控
B. 价格规律
C. 供需矛盾
D. 价值规律

查看答案
更多问题

下面不属于C++的预定义的流对象是______。

A. cin
B. iostream
C. clog
D. cerr

下列程序执行后,屏幕的输出是______。 #include<iostream> using namespace std; void swap(int x,int y) { int temp=x; x=y; y=temp; cout<<"x="<<x<<",y="<<y<<endl; } int main() { int x=3,y=2; swap(x,y); cout<<"x="<<x<<",y="<<y<<endl; return 0; }

A. x=3,y=2x=3,y=2
B. x=2,y=3x=3,y=2
C. x=2,y=3x=2,y=3
D. x=3,y=2x=2,y=3

下列程序的输出结果是______。 #include<iostream.h> void main() {int n[][3]={10,20,30,40,50,60};int(*p)[3]; p=n;cout<<p[0][0]<<","<<*(p[0]+1)<<","<<(*p)[2]<<endl;}

A. 10,30,50
B. 10,20,30
C. 20,40,60
D. 10,30,60

有如下程序: #include<iostream> using namespace std; class TestClass{ static int i; public: TestClass (){i++;} ~TestClass(){i--;} static int getVal(){return i;} }; int TestClass::i=0; void f(){TestClass obj2;cout<<obj2.getVal();} int main(){ TestClass obj1; f(); TestClass * obj3=new TestClass;cout<<obj3->getVal(); delete obj3;cout<<TestClass::getVal(); return 0; } 程序的输出结果是______。

A. 232
B. 221
C. 222
D. 231

答案查题题库