A.It was limited in prehistoric times.
B.It is usually the first stage of cooperation achieved by a group of individuals attempting to cooperate.
C.It is an ideal that can never be achieved.
D.It is most commonly seen among people who have not yet developed reading and writing skills.
第1题
有如下程序: #include <iostream> using namespace std; int main() { char str[100], *p; cout<<"Please input a string:"; cin>>str; p=str; for (int i=0; *p!='\0'; p++,i++); cout<<i<<endl; return 0; }运行这个程序时,若输入字符串为 abcdefgabcd则输出结果是
A.7
B.12
C.13
D.100
第2题
有如下程序: #include <iostream> using namespace std; int main() { char str[100], *p; cout<<"Please input a string:"; cin>>str; p=str; for (int i=0; *p!='\0'; p++,i++); cout<<i<<endl; return 0; }运行这个程序时,若输入字符串为 abcdefgabcd则输出结果是
A.7
B.12
C.13
D.100
第3题
有如下程序: #include<iostream> using namespace std; int main() { cout.fill('*') cout.width(6); cout.fill('#') cout<<123<<endl; return 0; } 执行后的输出结果是
A.###123
B.123###
C.***123
D.123***
第4题
有如下程序: #include <iostream> using namespace std; Class x { protected: int a; public: x() { a=1; } }; class x1 : virtual public x { public: x1() { a+=1; cout<<
A.1
B.123
C.242
D.244
第5题
有如下程序: #include <iostream> using namespace std; class AA { public: virtual void f() { cout<< "AA"; } }; class BB : public AA { public: BB() { cout << "BB"; } }; cla
A.AA
B.AABBCC
C.BBAABBCC
D.BBBBAACC
第6题
有如下程序:
#included<iostream>
using namespace std;
class CD{
public:
~CD(){cout<<’C’;)
private:
char name[80];
};
int main()(CD a,*b,d[2];return 0;}
运行时的输出结果是
A.CCCC
B.CCC
C.CC
D.C
第7题
有如下程序:
#included<iostream>
using namespace std;
class CD{
public:
~CD(){cout<<’C’;)
private:
char name[80];
};
int main()(CD a,*b,d[2];return 0;}
运行时的输出结果是
A.CCCC
B.CCC
C.CC
D.C
第8题
有如下程序: #include<iostream> using namespace std; int main() { cout.fill('*'); cout.width(5); cout<<scientific<<315926535<<endl; retrun 0; } 程序运行后,输出的结果是()。
A.3.14E+02
B.3.14E+02
C.**3.14e+002
D.314.16
第9题
有如下程序:#include <iostream> using namespace std; class Test{ public: Test(){} ~Test(){cout<<’#’;} }; int main(){ test temp[2], *ptemp[2]; return 0; } 执行这个程序输出星号(#)的个数为()。> A、1
B、2
C、3
D、4
第10题
有如下程序: #include<iostream> using namespace std; int main() { cout.fill('*'); cout.width(5); cout<<scientific<<315926535<<end1; return 0; } 程序运行后,输出的结果是
A.3.14E+02
B.3.14E+02
C.**3.14e+002
D.314.16
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!