C++程序必须有且只有一个主函数,其函数名为____________。
查看答案
写出下列程序的执行结果是:__________________。#includeusing namespace std;int age( int n ){ int f; if( n == 1 ) f = 10 ; else f = age( n-1 ) + 2; return f ;}void main(){ cout<<"age:"<
写出下列程序的执行结果是:__________________。#includeusing namespace std;void sort( double x,double y );void sort( double x,double y,double z );void main(){ sort( 0.5, 30.8, 5.9 );}void sort( double x,double y,double z ){ double t; if( y
写出下列程序的执行结果是:__________________。#includeusing namespace std;void f ( int&n );void main(){ int a = 1 ; f( a );}void f ( int& n ){ cout<
在下面横线处填上求两个浮点数之差的cha函数的原型声明、调用方法。#include using namespace std;void main( ){float a,b;float cha(float,float);a=12.5;b=6.5;float c=________________//调用函数chacout<