Which of the following statements is CORRECT?
A.A Western love marriage tends to miss some Japanese values.
B.Less attention is paid to the partner's qualification in arranged marriages.
C.Young Japanese would often calculate their partner's wealth.
D.A new arranged marriage is a repetition of the older type.
第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题
已知下列程序的输出结果是42, 请将画线处缺失的部分补充完整。
include<iostream>
using namespace std;
class Foo
int value;
public:
Foo(): value(0) {}
void setValue(int value)
{【 】=value; //给Foo的数据成员value赋值}
void print() { cout<<value;}
};
int main()
{
Foo f;
f.setValue(42);
f.print();
return 0;
第4题
下列程序的输出结果是________。#include <iostream> using namespace std; int a=5; void fun (int a) { ::a -= --a; cout<<::a<<’\t’<><<’\n’; } int main() { a="5;" for(int i="-5;" fun(a); return 0;>
第5题
下列程序的输出结果是()。 #include<iostream> using namespace std; class TestClass{ static int i; public: TestClass(){i++;} ~TestClass(){i--;} static int getVal(){retum i;} }; int TestClass∷i=0; voi
A.111
B.121
C.211
D.221
第6题
以下程序的输出结果是 。 #include <iostream> #include <iomanip> using namespace std; void main() { int i; for (i=1;i>=0;) cout< <i--;>
第7题
下面程序的运行结果是()。 #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
第8题
下列程序的输出结果是【 】。
include<iostream>
using namespace std;
int main(){
int i=3;
int &r=i; r=5;
cout<<i<<endl;
return 0;
}
第9题
下列程序的输出结果是【 】
include<iostream>
using namespace std;
int main()
{
int num=500;
int &ref=num;
ref +=100;
cout<<num<<end1;
return 0;
}
第10题
下列程序的输出结果是【 】。
inClude<iostream>
using namespace std;
int main()
{
int i=5;
int &r=i;r=7;
cout<<i<<endl;
return0;
}
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!