填空题
下面程序的执行结果是
【15】
。
#include <iostream. h>
void main()int n=0,x=0;
don++;
if(n%3==2&&n%5==3&&n%7==2)
x=1;
while(x!=1);
cout<<"n=" <<n<<end1;
【参考答案】
n=23
点击查看答案
<上一题
目录
下一题>
热门
试题
填空题
阅读下面程序:int fun2(int m)if(m%3==0)return 1;elsereturn 0;void funl(int m, int &s)int i;for (i=1;i<m; i++)if(fun2(i))s=s*i;void main()int n=9,s=2;fun1(n, s);cout<<s<<end1;该程序的运行结果是 【12】 。
点击查看答案
填空题
C++本身没有定义I O操作,但I 0操作包含在C++实现中。C++标准库iostream提供了基本的I O类。I O操作分别由类istream和工 【11】 提供。
点击查看答案
相关试题
数据库系统中实现各种数据管理功能的核心软...
有如下程序:#include <iostream>using...
虚基类说明格式如下:slass 派生类名 【...