以下程序的输出结果是( )。 include<stdio.h> include<math.h> main() {int a=1,b=4,c=2; float x=10.5,y=4.0,z; z=(a+b)/c+sqrt((double)y)*1.2/c+x; pritnf("%f&92;n",z);}
相似题目
-
1)#include 2)using namespace std; 3)int main() 4){ 5)int a,b,result; 6)cout<<"please input two numbers: "; 7)cin>>a>>b; 8)result=3*a-2*b+1; 9)cout<<"resultis" << result << endl; 10)} 程序的输出结果是:()
-
以下程序的输出结果是( )。#include #include main(){ char *p=abcde\0fghjik\0
-
下列程序的输出是( )。#include#includeusing namespace std;void main(){int a[10]={l,2,3,4,5,6,7,8,9,10),*p=a;cout<
-
以下程序的输出结果是______#includeusing namespace std;int main(){int a=2.5+3.6;printf(\a=%d\\n\,a);return 1;}
-
有如下程序 #include using namespace std; class Test{ public: Test(){ } Test(const Test &t) {cout<<1;} }; Test fun(Test &u) {Test t=u; return t;} int main(){Test x,y; x=fun(y); return 0;} 运行这个程序的输出结果是( )
-
有如下程序: inClude<iostream> using namespaCe std: Class CD{ publiC: ~CD{Cout<<’C’:} private: Char name[80]; }; int main{ CD a,*b,d[2]; return 0; 执行这个程序的输出结果是()。
-
有以下程序: include<stdio.h> main() {printf("%d\n",NULL)); 程序运行后的输出结果是()。
-
有如下程序: include<iostream> using namespace std; class MyClass{ public: MyClass{cout<<’A’;} MyClass(char C.{cout<<C;} ~MyClass{cout<<’B’;} }; int main{ MyClass pl,+p2; p2=new MyClass(’X’); delete p2; return 0; } 执行这个程序的输出结果是()。
-
阅读以下程序,写出程序运行后的输出结果是 ______。include<iostream.h>void main(){char a[]={'
-
以下程序的输出结果是 。 include <iostream> include <iomanip> using namespace
-
运行程序,程序输出结果是(). include <iostream> using namespace std; int main() { ch
-
下面程序的运行结果是【】。 include<iostream> using namespace std; void fun(int&a,int b=3)
-
下面的程序输出结果是()。include<iostream>using namespace std;void add(){static int x;x++;c
-
有如下程序: include<iostroam> using namespace std; class Base{ protected: Base{cout<<’A’;} Base(char C){cout<<c;} }; class Derived:public Base{ public: Derived(char C){tout<<C;} }; int main{ Derived dl(’B’); retum 0; } 执行这个程序的输出结果是()。
-
以下程序的功能是:按顺序读入10名学生4门课程的成绩,计算出每个学生的平均分数并输出,程序如下: include<iostream> using namespace std; int main() { int n,k; float score,sum,ave; sum = 0.0; for(n = 1;n <=10; n++) { for(k =1;k<=4;k++) { cin>>score; sum += score; } ave=sum/4.0; cout<<"NO."<<n<<"ave:"<<ave<<end1; } return 0; } 上述程序运行后结果不正确,调式中发现有一条语句出现在程序中的位置不正确。 这条语句是非曲直()。
-
有以下程序 void fun(int x,int y,int z) { z=x*y; } include<iostream> using namespace std ; int main() { int a=4,b=2,c=6; fun(a,b,c); cout<<c; return 0; } 程序运行后的输出结果是(> A、16
-
有以下程序 include<stdio.h>include<string.h>void fun(); } 程序运行后的输出结果是
-
有以下程序includ<stdio.h>main(){printf("%"NUL);}程序运行后的输出结果是()
-
【单选题】假定以下程序经编译和连接后生成可执行文件PROG.EXE,如果在此可执行文件所在目录的DOS提示符下输入"PROG ABCDEFGH IJKL",则输出结果为 。 include<iostream> using namespace std; void main (int argc, char *argv[]) { while(--argc>0) cout<<argv[argc]; }
-
要求在运行程序时输入数据1,输出结果为55(即1到10的和)。 include <iostream> using namespace std; void main() { int sum=1,i; cin>>i; do { ________; sum+=i; }while(_______); cout<<sum<<endl; }
-
以下程序的输出结果是()。 include <stdio.h> main() {int x=10;float pi=3.1416; printf
-
以下程序若运行时输入ABC,则输出结果是______。 include include void main(); }
-
下列程序的输出结果是 。 using namespce std; include <iostream> int main() { int x=1,i=1; for (; x < 50; i++) { if(x >= 10) break; if(x % 2 != 0){ x += 3; continue; } x-=-1; } cout<<x<<'
-
以下程序试图把从终端输入的字符输出到名为abc.txt的文件中,直到从终端读入字符时结束输入和输出操作,但程序有错,出错的原因是()。 include<stdio.h> main() FILE *fout: char ch: fout=fopen("abc.txt","w"); ch=fgetc(stdin); while(ch!="") fputc(ch,fout); ch=fgetc(std
-
以下程序的输出结果是()include <stdio.h> int fun(int x)
推荐题目
- 某代谢性酸中毒患者[HCO-3]为15mmol/L,该患者首选的溶液是()
- 以下()切换现象是由于配置问题导致的
- 德士古烧嘴的中心管道通(),中心管道与外管之间通()。
- 不贷款、不使用银行卡,信用一定就好。
- 影响汽油安定性的根本原因是汽油中存在不安定组分,特别是不饱和烃,如二烯烃等。
- 鱼类头骨可分为包藏脑及视、听、嗅等感觉器官的()和左右两边包合消化管前段的()二部分。
- 在肺动脉口狭窄的诊断中最具确诊价值的是()
- 每页允许最大行数48行
- 关于《吕氏春秋》的篇目,叙述正确的是()
- 高加满水应首先了解机组负荷情况及疏水调节阀是否运行正常,最后从疏水调整门的运行状况上判断,如果疏水调整门的开度比该负荷下正常运行时(),这样可初步判定高加内漏。