题目内容

写出下面程序执行后的运行结果:#includeusing namespace std; int main____{ int k[30]={12,324,45,6,768,98,21,34,453,456};int count=0,i=0;while____{ if____count++;i++;}cout<< count <<","<

查看答案
更多问题

写出下面程序执行后的运行结果:#includeusing namespace std; int main____{ char a[30],b[30];int k;gets____;gets____;k=strcmp____;if____ puts____;else if____ puts____;return 0;}输入loveChina输出结果是什么?

阅读下面程序,则程序段的功能是什么?#includeusing namespace std; int main____{ int c[]={23,1,56,234,7,0,34},i,j,t;for____{ t=c[i];j=i-1;while____{c[j+1]=c[j];j--;}c[j+1]=t;}for____cout<

写出下面程序执行后的运行结果。 #include using namespace std;#define RELEASE 0void main____{int i; char str[20] = "Northwest", c;for ____ != '\0'; i++){#ifdef RELEASEif ____ c = c - 32;#elseif ____c = c + 32;#endifcout.put____;}}

读程序写运行结果。 #include using namespace std;templatevoid f____{for ____for ____ {c[i][j] = ____0;for____ c[i][j]+=a[i][k]*b[j][k];}}void main____{int a[3][3] = { { 1, 2, 3 }, { 4, 5, 6 }, { 7 } }, b[3][3], c[3][3] = { { 2 },{ 0, 2 }, { 0, 0, 2 } };f____;for ____{for (int j = 0; j < 3; j++cout << b[i][j] << ““;cout << endl;}}

答案查题题库