单项选择题
下列程序的输出结果是( )。
#include<iostream>
using namespace std;
int main()
char a[]="Hello,Test";
char*p=a;
while(*p)
if(*p>=’a’&&*p<=’z’)
cout<<char(*p+’A’-’a’);
else cout<<*p;
p++;
retum 0;
A.hllo,test
B.Hello,Test
C.HELLO,TEST
D.hELLO,tEST
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
有下列程序: #include<iostream> using namespace std; classTest public: Test() n+=2; ~Test() n-=3; static int getNum()return n; private: static int n; ; int Test::n=1; int main() Test*p=new Test; delete p; cout<< n= <<Test::getNum()<<endl; retum 0; 执行后的输出结果是( )。
A.n=0
B.n=l
C.n=2
D.n=3
点击查看答案&解析
单项选择题
下列不属于软件工程3个要素的是( )。
A.工具
B.过程
C.方法
D.环境
点击查看答案&解析
相关试题
有下列程序: #include<iostream> usi...
有下列程序: #include<iostream.h> ...
下列程序的执行结果是( )。 #include...
有下列的程序: #include<cstring.h>...