要求通过while循环不断读入字符,当读入字母N时结束循环。若变量已正确定义,以下正确的程序段是
- A.while(ch=getchar() ='N') printf("%c ",ch);
- B.while((ch=getchar())!='N') printf("%c ",ch);
- C.while(ch=getchar()=='N') printf("%c ",ch);
- D.while((ch=getchar())=='N') printf("%c ",ch);
热度🔥342
解析:打开微信小程序查看本题解析
有以下程序
#include
main()
{ FILE *fp; int i, a[6] = {1,2,3,4,5,6};
fp = fopen( "d2.dat", "w+" );
for (i=0; i<6; i++) fprintf( fp, "%d\n", a[i] );
rewind( fp );
for ( i=0; i<6; i++ ) fscanf( fp, "%d", &a[5-i] );
fclose(fp);
for ( i=0; i<6; i++ ) printf( "%d,", a[i] );
}
程序运行后输出结果是
在SQL Server 2008中,设U1用户在某数据库中是db_datawriter角色中的成员,则用户U1从该角色中可以获得的数据操作权限是( )。
I. 查询 II. 插入 III. 更改 IV. 删除
螺旋模型相比演化模型主要增加了
软件需求规格说明书的作用不包括( )。