不能用来登记现金日记账的记账凭证是()
A.现收凭证
B.现付凭证
C.银收凭证
D.银付凭证
第1题
下面程序运行输出的结果是【 】。
include <iostream>
using namespace std;
int main(){
char a[]="Chinese";
a[3]='\0';
cout<<a<<endl;
return 0;
}
第2题
以下程序的输出结果是 。 #include <iostream> #include <iomanip> using namespace std; void main() { int i; for (i=1;i>=0;) cout< <i--;>
第3题
下面程序执行后的输出结果是: #include <iostream> using namespace std; #define MA(x) x*x-1 int main() { int a=1,b=2; cout< <ma(1+a+b); return 0;> A、6
B、8
C、10
D、12
第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;int main(){ cout.fill('*'); cout.width(5); cous<<hex<<100<<end1; return 0;}
A.**100
B.***64
C.100**
D.64***
第6题
下面程序的输出结果是【 】。
include 〈iostream〉
using namespace std;
void f(int x)
{
if(x)
{
cout.put('0'+x%10);
f(x/10);
}
}
int main()
{
f(11001);
return 0;
}
第7题
下面程序的执行结果是【 】。
include<iostream>
include<iomanip>
using namespace std;
void main()
{
cout<<setfill('x')<<setw(10);
cout<<"Hello"<<endl;
}
第8题
运行程序,程序输出结果是(). #include <iostream> using namespace std; int main() { char str[100]="program",*p=str; str[3]=0; cout<
< <endl; return> A、ogram
B、r
C、o
D、pro
</endl;>
第9题
下面程序的输出结果是()。 #include<iostream> #include<string> using namespace std; void main(){ charp1[10],p2[10]; strcpy(p1,"abc"); strcpy(p2,"ABC"); charstr[50]="xyz"; strcpy(str+2,strcat(p1,p2)); cout<<str; }
A.xyabcABC
B.yzabcABC
C.xyzabcABC
D.zabcABC
第10题
下面程序的输出结果是()。 #include<iostream> using namespace std; void main(){ int i=1; while(i<=8) if(i%3!=2)continue; else cout<<i; }
A.369
B.258
C.36
D.25
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!