问题 填空题

阅读下列程序,写出程序的运行结果 [8]
#include<iostream. h>
void main()   char str1[ ]: "Hello, World;
char str2[100];
int i=0;
do
if (str1[i]>= ’a’&& str1[i]<= ’z’ )
str2[i]=str1[i]-32;
else
str2[i]=strl [i];
i++;
while(strl[i]!=’\0’);
str2[i]=’\0’;
cout<<str1<<end1;
cout<<str2<<end1;

答案

参考答案:Hello, World!
HELLO, WORLD!

问答题 简答题
问答题 简答题