A.通貨膨脹
B. 發生臺風
C. 工程所在國遭受經濟制裁
D. 資金不到位
E. 發生合同糾紛
第1題
以下程序運行后的輸出結果是 。 (條件表達式的多樣性) #include <iostream> using namespace std; void main() { int a = 3, b = 4, c = 5, t = 99; if(b) if(a) cout< </iostream></endl;> << <t> < <endl; else>
第2題
已知如下程序的輸出結果是23,請將畫線處缺失的部分補充完整。
include <iostream>
using namespace std;
class MyClass {
public:
void Print() const { cout << 23; }
};
int main() {
MyClass* p = new MyClass();
【 】.Print();
return 0;
}
第3題
執行如下程序后的輸出結果是【 】。
include <iostream>
include <fstream>
using namespace std;
int main ()
{
char s[25];
ofstream fl("data.txt");
f1<<"C++ Programming";
f1.close ();
ifstream f2 ("data.txt");
第4題
以下程序的輸出結果是 。 #include <iostream> #include <iomanip> using namespace std; void main() { int i; for (i=1;i>=0;) cout< <i--;>
第5題
如下程序的輸出結果是 #include<iostream> using namespaee std; int main(){ eout.fill('*'); eout.width(6); cout.fill('#'): eout<(123<endl: return 0; }
A.###123
B.123###
C.***123
D.123***
第6題
有如下程序: #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***
第7題
有如下程序: #include <iostream> using namespace std; int main(){ cout.fill('*'); cout.width(6); cout.fill('#'); cout<<123<<end1; return 0;} 執行后的輸出結果是
A.###123
B.123###
C.***123
D.123***
第8題
下面程序的運行結果是()。 #include <iostream> #include <cstring> using namespace std; int main() { char s1[10]="abc"; char s2[20]="inter"; int k=0,j=0; while (s2[k]) k++; while(s1[j]) s2[k--]=s1[j++]; cout<<s2<<endl; return 0;> A、abc
B、inter
C、intcba
D、interabc
第9題
如下程序的輸出結果是 #include<iostream> using namespace std; class A{ public: A(){cout<<"A";} }; class B{public:B(){cout<<"B";}}; class C:public A{ B b; public: C(){cout<<"C";} }; int main(){C obj;return 0;}
A.CBA
B.BAC
C.ACB
D.ABC
第10題
有如下程序:#include <iostream>#include<iomanip>using namespace std;int main(){ cout.fill('*'); cout.width(6); cout.fill('#'); cout<<123<<end1; return 0;}執行后的輸出結果是()。
A.###123
B.123###
C.***123
D.123***
為了保護您的賬號安全,請在“上學吧”公眾號進行驗證,點擊“官網服務”-“賬號驗證”后輸入驗證碼“”完成驗證,驗證成功后方可繼續查看答案!