下列有关法律关系变更的说法正确的是()。
A.法律关系客体变更,主体不变更,不会引起法律关系的变更
B.法律关系内容变更,主体不变更,不会引起法律关系的变更
C.只有法律关系主体变更,才能引起法律关系的变更
D.只要法律关系主体、客体和内容其中有一个发生变更,就能引起法律关系变更
第1题
有如下的程序:
include <iostream>
include <fstream>
using namespace std;
int main()
{
ofstream outf("D:\\temp.txt",ios_base::trunc) ;
outf<<"World Wide Web";
outf.close();
ifstream inf("D:\\temp.txt");
char s[20];
inf>>s;
inf.close();
cout<<s;
return 0;
}
执行后的输出结果是【 】。
第2题
以下程序执行后输出的结果是【 】。
include<iostream>
include<fstream>
using namespace std;
int main(){
ofstream ofile("D:\\temp.txt");
if(!ofile){
cout<<"temp.txt cannot open"<<endl;
return 0;
}
ofile<<"This is a book" <<" " <<54321<<endl;
ofile.close();
ifstream ifile("D:\\temp.txt");
if(!ifile){
cout<<"temp.txt cannot open" <<endl;
return 0;
}
charstr[40];
ifile >> str;
ifile.close();
cout<<Str<<endl;
return 1;
}
第3题
有如下的程序:
include<iostream>
include<fstream>
using namespace std;
int main(){
char s[25]="Programming language";
ofstream f1("DATA. TXT");
f1<<"C++Programming";
f1.close();
ifstream f2("DATA.TXT");
if(f2.good())f2>>s;
f2.close();
cout<<s;
return 0;
}
执行上面的程序将输出______。
第4题
有如下程序: #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***
第5题
有如下程序: #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***
第6题
有如下程序:#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***
第7题
有如下程序:
#include<iostream>
usingnamespacestd;
classBASE{
public:
~BASE(){cout<<"BASE";}
};
classDERIVED:publicBASE{
public:
~DERIVED(){cout<<"DERIVED";}
};
intmain(){DERIVEDx;return0;)
执行后的输出结果是()。
A.BASE
B.DERlVED
C.BASEDERIVED
D.DERlVEDBASE
第8题
有如下程序: #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***
第9题
有如下程序: #include<iostream) using namespace std; classBASE{ public: ~BASE(){cout<<“BASE”;} }; class DERIVED:public BASE{ public: ~DERIVED(){COUt<<“DERIVED”;} }; int main(){DERIVED x;return 0;} 执行后的输出结果是()。
A.BASE
B.DERIVED
C.BASEDERIVED
D.DERIVEDBASE
第10题
以下程序的输出结果是 。 #include <iostream> #include <iomanip> using namespace std; void main() { int i; for (i=1;i>=0;) cout< <i--;>
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!