更多"执行以下程序后,输出“#”的个数是 【13】 。
#include"的相关试题:
[填空题]执行以下程序后,输出’*’号的个数是______。
#include<stdio.h>
main( )
{ int i,j;
for (i=1;i<6;i++)
for(j=2;j<=i;j++)putchar(’*’);
}
[填空题]执行以下程序后,输出#号的个数是 【4】 。
# include<stdio. h>
main( )
{ int i, j;
for(i=1; i<5; i++)
for(j=2; j<=i; j++)putchar(’#’);
}
[填空题]执行以下程序后,输出#号的个数是 【4】 。
# include<stdio. h>
main( )
int i, j;
for(i=1; i<5; i++)
for(j=2; j<=i; j++)putchar(’#’);
[填空题]执行以下程序后,输出“#”的个数是 。
#include <stdio.h>
main( )
int i,j;
for(i=1;i<5;i++)
for(j=2;j<=i;j++) putchar(’#’);
[填空题]执行以下程序后,输出“#”的个数是 【13】 。
#include <stdio.h>
main( )
int i,j;
for(i=1;i<5;i++)
for(j=2;j<=i;j++) putchar(’#’);
[填空题]执行以下程序后,输出“#”号的个数是 【14】 。
#include<iostream.h>
main( )
{
int i,j;
for(i=1;i<5;i++)
for(j=2;j<=i;j++)
cout<’#’;
}
[填空题]执行以下程序后,输出“#”号的个数是 【14】 。
#include<iostream.h>
main( )
int i,j;
for(i=1;i<5;i++)
for(j=2;j<=i;j++)
cout<’#’;
[填空题]执行以下程序后,输出‘#’号的个数是 【10】 。
#include<atdio.h>
main( )
int i,j;
for(i=1;i<5;i++)
for(j=2;j<=i;j++)putchar(’#’);
[填空题]执行以下程序后,输出’’#’’号的个数是【 】。
#include <stdio.h>
main( )
{ int i,j;
for(i=1; i<5; i++)
for(j=2; j<=i; j++) putchar(’’#’’);
}
[填空题]执行以下程序后,输出“#”号的个数是______。
#include <iostream.h>
main( )
inti,j;
for(i=1;i<5;i++)
for(j=2;j<=i;j++)
cout<’#’;
[填空题]执行以下程序后,输出‘#’号的个数是______。
#include <stdio.h>
main( )
int i,j;
for (i=1; i<5; i++)
for(j=2;j<=i;j++)
putchar(’#’);
[填空题]执行以下程序后,输出“#”号的个数是______。
#include<stdio.h>
void main( )
int i,j;
for(i=1;i<5;(++i)++)
for(j=2;j<=i;j++)putchar(’#’);
[填空题]执行以下程序后,输出“*”号的个数是______。
#include<iostream.h>
main( )
int i,j;
for(i=1;i<5;i++)
for(j=2;j<=i;j++)
cout<<’*’;
[单项选择]执行以下程序后的输出结果为 ( )。
#include<iostream>
Using namespace std;
void fun(int x, int y, int *cp, int *dp)
*cp=x+ y; 2*dp=x- y;
void maia( )
int a, b, c, d;
a=30; b=50;
fun(a, b, &c, &d);
cout<<c<<’,’<,d<<end1;
A. 50, 30
B. 30, 50
C. 80, 20
D. 80, 20
[单项选择]执行以下程序后的输出结果为( )。
#include<iostream. b>
class Sample int x, y;
public:
Sample( ) x=y=0;
Sample(int a, int b) x=a; y=b;
void disp ( )
cout<<"x="<<x<<"y="<<y<<end1;
;
void main( ) Sample s(2,3), *p=&s;
p->disp( );
A. x=1, y=3
B. x=2, y=4
C. x=3, y=2
D. x=2, y=3