填空题
以下程序的执行结果是
【15】
。
#include<iostream>
#define PI____3.14159
const int R=10;
void main()
double a,b;
ac2*R*PI;
b=R*R*PI;
cout<<"a="<<a<<","<<"b="<<b<<endl;"
【参考答案】
a=FB.HCAH,b=CAD.AEI
点击查看答案
<上一题
目录
下一题>
热门
试题
填空题
下列程序的输出结果是 【14】 。 #include<iostream.h> void main() inta(5),b(6),i(0)1j(0); switch(a) case 5:switch(b) case 5:i++;break; case 6:j++;break; defaun:i++;j++; case 6:i++; j++; break; default:i++;j++; cout<<i<< , <<j<<endl; )
点击查看答案
填空题
下列程序的输出结果是 【11】 。 #include<iostream> using namespace std; class Test public: Test()cnt++;) ~Test()cnt--;) static int Count()retum cnt; private: static int cnt; ; int Test::cnt=0; int main() cout<<Test::Count()<<’’; Test t1,t2; Test*pT3=new Test; Test*p T4=new Test; cout<<Test::Count()<<’’; delete pT4; delete pT3; cout<<Test::Count()<<endl; return0;
点击查看答案
相关试题
数据模型的三要素是( )。
需求分析是( )。
在软件开发中,下面任务不属于设计阶段的是...
下列while循环的次数是( )。 while(in...
若执行语句:cout<<seffill('*')<<s...