网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
下列程序的输出结果为()。includeincludevoid main(){cout.precision(4
下列程序的输出结果为( )。 #include<iostream.h> #include<iomanip.h> void main() { cout.precision(4); cout<<123.127 cout<<" "<<123.46; }
A.123.1 123.4
B.123.1 123.46
C.123.127 123.46
D.123.1123.4
参考答案
更多 “ 下列程序的输出结果为()。includeincludevoid main(){cout.precision(4 下列程序的输出结果为( )。 #include<iostream.h> #include<iomanip.h> void main() { cout.precision(4); cout<<123.127 cout<<" "<<123.46; }A.123.1 123.4B.123.1 123.46C.123.127 123.46D.123.1123.4 ” 相关考题
考题
下面程序的执行结果是______。 include include using namespace std; vo
下面程序的执行结果是______。include<iostream.h>include<iomanip.h>using namespace std;void main(){cout<<setfill('x')<<setw(10);cout<<"Hello"<<endl;}
考题
下列程序的执行结果是______。 include include using namespace std; vo
下列程序的执行结果是______。include<iostream.h>include<iomanip.h>using namespace std;voidmain(){cout<<setfill('x')<<setw(10);cout<<"Hello"<<end1;}
考题
下列程序的执行结果是【 】。 include int a; int sum_a(void) { a=a+5; return a; }
下列程序的执行结果是【 】。include <iostream. h>int a;int sum_a(void){a=a+5;return a;}void main(void){a = a+sum_a();cout<<a<<endl;}
考题
下面程序运行时输出结果为【】。 include include class Rect { public: Rec
下面程序运行时输出结果为【 】。include<iostream.h>include<malloc.h>class Rect{public:Rect(int1,int w)(length=1;width=w;)void Print(){cout<<"Area:"<<length *width<<endl;)void *operator new(size-t size){return malloc(size);}void operator delete(void *p){free(p)private:int length,width;};void main(){Rect*p;p=new Rect(5,4);p->Print();delete p;}
考题
以下程序的执行结果是______ include include void print(int n) { if(n
以下程序的执行结果是______include<iostream.h>include<iomanip.h>void print(int n){if(n!=0){print(n-1);for(int i=1;i<=n;i++=cout<<setw(3)<<i;cout<<endl;}}void main(){print (4);}
考题
下列程序的输出结果是______。includeinclude using namespace std;void
下列程序的输出结果是______。include <iostream.h>include <cstring.h>using namespace std;void fun(const char*s,char C) {c=s[strlen (s)/2];}int main {){char str [] ="ABCDE";char ch=str[1];fun(str,sh);cout<<Ch;return 0;}
考题
当输入“Thank you”时下列程序的输出结果为()。 include include void m
当输入“Thank you”时下列程序的输出结果为( )。 #include<iostream.h> #include<iomanip.h> void main() { char line[80]; cin.getline(line,sizeof(80),'k'); cout<<line; }A.ThaB.Thank youC.ThankD.以上结果都不对
考题
下列程序的输出结果为()。includeincludevoidmain(){cout.precision(4)
下列程序的输出结果为( )。 #include<iostream.h> #include<iomanip.h> voidmain() { cout.precision(4); cout<<123.127; cout<<””<<123.46: }A.123.1 123.4B.123.1 123.46C.123.127 123.46D.123.1123.4
考题
当输入“Thank you”时下列程序的输出结果为()。includeincludevoid mai
当输入“Thank you”时下列程序的输出结果为( )。 #include<<iostream.h> #include<iomanip.h> void main() { char line[80]; cin.getline(line,sizeof(80),'k'); cout<<line; }A.ThaB.Thank youC.ThankD.以上结果都不对
热门标签
最新试卷