填空题
为了表明一个函数不带返回值,应在定义函数时指定该函数类型为______。
【参考答案】
void
热门
试题
填空题
下列程序不能通过编译,应该在划线部分填写的语句是______。#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;}