有以下程序:#include<iostream>using namespace Std;int main(){ int a = 15,b = 21,m = 0; swit
有以下程序: #include <iostream> using namespace Std; int main() { int a = 15,b = 21,m = 0; switch(a%3) { case 0: m++; break; case 1: m++; switch(b%2) {
A.1
B.2
C.3
D.4
有以下程序: #include <iostream> using namespace Std; int main() { int a = 15,b = 21,m = 0; switch(a%3) { case 0: m++; break; case 1: m++; switch(b%2) {
A.1
B.2
C.3
D.4
第1题
有以下程序:
# include< iostream>
执行这个程序,输出结果是()。
第5题
有以下程序: #include <iostream> #include <fstream> using namespace std; int main () { ofstream ofile; char ch; ofile.open ("abc.txt"); cin>>ch; while (ch!='#' ) { cin>>ch; ofile.put(ch);
A.程序编译时出错
B.abc#
C.abc
D.#
第6题
A.10
B.20
C.0
D.出错
第8题
有以下程序
#include <stdio.h>
#include <string.h>
main()
{ printf("%d\n",strlen ("ATS\n012\1") ); }
程序运行后的输出结果是
A)3
B)8
C)4
D)9
第9题
有以下程序:
include<stdio.h>
include<strin9.h>
main()
{printf{"%d\n",strlen("%d\n",strlen("ATS\n012\|"));}
程序运行后的输出结果是()。
A.3
B.8
C.4
D.9
第11题
有以下程序: #include <iostream> #include <string> using namespace std; class base { private: char baseName[10]; public: base () { strcpy (baseName, "Base"); } virtual char *myName() {
A.DerivedBase
B.BaseBase
C.DerivedDerived
D.BaseDerived
为了保护您的账号安全,请在“赏学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!