下列程序不能通过编译,应该在划线部分填写的语句是【 】。includeinclude 下列程序不能通过编译,应该在划线部分填写的语句是【 】。include<iostream. h>include<stdlib. hdouble Fune(int a, int b, char ch){double x;switch(ch){case '+':x=double(a) +b;break;case '--':x= double(a) --b;break;case '/':x=double(a) * b;break;case '/':if(B) x=double(a) /b;elseexit(1)breakdefault:exit(1);}______}void main(){cout<<Func(32 , 6 ,'--')<< ",";cout<<Func(32, 6 ,'*') <<",";cout<<Func(32, 6 ,'/') <<end1;}

下列程序不能通过编译,应该在划线部分填写的语句是【 】。includeinclude

下列程序不能通过编译,应该在划线部分填写的语句是【 】。

include<iostream. h>

include<stdlib. h>

double Fune(int a, int b, char ch)

{

double x;

switch(ch)

{

case '+':

x=double(a) +b;

break;

case '--':

x= double(a) --b;

break;

case '/':

x=double(a) * b;

break;

case '/':

if(B) x=double(a) /b;

else

exit(1)

break

default:

exit(1);

}

______

}

void main()

{

cout<<Func(32 , 6 ,'--')<< ",";

cout<<Func(32, 6 ,'*') <<",";

cout<<Func(32, 6 ,'/') <<end1;

}


相关考题:

应在下面程序下划线中填写的正确的语句是( )。 include using namespace std; 应在下面程序下划线中填写的正确的语句是( )。 #include <iostream> using namespace std; class A{ public: void test(){cout<< "this is A!";} }; class B:public A{ void test(){ ______ //显示调用基类函数test() cout<< "this is B!"; } }; void main(){}A.A::test()B.test()C.B::test()D.this->test()

下列程序完成从文件读取文件显示的同时写入第二个文件,则在程序中划线部分应该出现的语句是______。include<iostream.h>include(fstream.h)void main(){fstream filel,file2;charfnl[10],fn2[10],ch;cout<<“输入源文件名”;cin>>fnl;cout<<“输入目标文件名”;cin>>fn2;filel.open(fnl,ios::i

下列程序不能通过编译,应该在划线部分填写的语句是_______。

下列程序不能通过编译,应该在划线部分填写的语句是______。 include include 下列程序不能通过编译,应该在划线部分填写的语句是______。include<iostream.h>include<stdlib.h>double Func(int a,int b,char ch){double x;switch(ch){case'+':x=double(a)+b;break;case '-':x=double(a)-b;break;case '*':x=double(a)*b;break;case'/':if(B)x=double(a)/b;elseexit(1);break;default:exit(1);}______}void main( ){cout<<Func(32,6,'-')<<",";cout<<Func(32,6, '*')<<",";cout<<Func(32,6,'/')<<endl;}

在使用标准的输入/输出库函数时,应该在程序的开头使用编译预处理命令“#include <stdio.h>”。

15、在使用标准的输入/输出库函数时,应该在程序的开头使用编译预处理命令“#include <stdio.h>”。

14、以下程序正确的说法是()。 #include<stdio.h> void main() { int x=0,y=0; if(x=y) printf("*****\n"); else printf("#####\n"); }A.输出#####B.有语法错误不能通过编译C.可以通过编译,但不能通过连接,因此不能运行D.输出*****

【单选题】请阅读以下程序:该程序()。 #include ”stdio.h” void main() { int x=-10, y=5, z=0; if (x=y+z) printf(”***n” ); else printf(”$$$n”); }A.有语法错不能通过编译B.可以通过编译但不能通过连接C.输出***D.输出$$$

12、一个C语言源程序中如果调用了函数fabs,那必须有编译预处理命令()。A.#include <stdio.h>B.#include <math.h>C.#include <ctype.h>D.#include <stdlib.h>