1)#include < iostream > 2)#include < cmath > 3)using namespace std; 4)double max(double x,doubley) 5){ 6)if(x>y) 7)return x; 8)else 9)return y; 10)} 11)int main() 12){ 13)doublea,b,c; 14)cout <<" input two numbers:/n"; 15)cin >> a >> b; 16)c=max(a,b); 17)cout <<" the squart of max imum="<< sqrt( c ); 18)} 执行第15行时,若输入“8空格9回车”,则执行完第18行后,命令提示符窗口中新输出的结果是:()
1)#include 2)using namespace std; 3)int main() 4){ 5)int a,b,result; 6)cout<<"please input two numbers:/n"; 7)cin>>a>>b; 8)result=3*a-2*b+1; 9)cout<<"resultis<<<< result << endl; 10)} << 程序的第5行中的cout表示:()
1)#include < iostream > 2)#include < cmath > 3)using namespace std; 4)double max(double x,doubley) 5){ 6)if(x>y) 7)return x; 8)else 9)return y; 10)} 11)int main() 12){ 13)doublea,b,c; 14)cout <<" input two numbers:/n"; 15)cin >> a >> b; 16)c=max(a,b); 17)cout <<" the squart of max imum="<< sqrt( c ); 18)} 执行完第14行后,命令提示符窗口中输出的结果是:()
1)#include < iostream > 2)#include < cmath > 3)using namespace std; 4)double max(double x,doubley) 5){ 6)if(x>y) 7)return x; 8)else 9)return y; 10)} 11)int main() 12){ 13)doublea,b,c; 14)cout <<" input two numbers:/n"; 15)cin >> a >> b; 16)c=max(a,b); 17)cout <<" the squart of max imum="<< sqrt( c ); 18)} 第17行中sqrt( c )的含义是:()
1)#include < iostream > 2)# include < math.h > 3)using namespace std; 4)double max(double x,doubley); 5)void main() 6){ 7)double a,b,c; 8)cout << " input two numbers:/n"; 9)cin>>a>>b; 10)c=max(a,b); 11)cout<< " the squart of max imum="<< sqrt(c); 12)} 13)double max(doublex,doubley) 14){ 15)if(x>y) 16)returnx; 17)else 18)returny; 19)} 执行完第7行后,a的值是:()
1)#include < iostream > 2)# include < math.h > 3)using namespace std; 4)double max(double x,doubley); 5)void main() 6){ 7)double a,b,c; 8)cout << " input two numbers:/n"; 9)cin>>a>>b; 10)c=max(a,b); 11)cout<< " the squart of max imum="<< sqrt(c); 12)} 13)double max(doublex,doubley) 14){ 15)if(x>y) 16)returnx; 17)else 18)returny; 19)} 执行第19行时,系统会回收几个变量存储空间:()
1)#include 2)using namespace std; 3)int main() 4){ 5)int a,b,result; 6)cout<<"please input two numbers:/n"; 7)cin>>a>>b; 8)result=3*a-2*b+1; 9)cout<<"resultis<<<< result << endl; 10)} << 程序执行完第5行后,光标在什么位置:()
1)#include < iostream > 2)#include < cmath > 3)using namespace std; 4)double max(double x,doubley) 5){ 6)if(x>y) 7)return x; 8)else 9)return y; 10)} 11)int main() 12){ 13)doublea,b,c; 14)cout <<" input two numbers:/n"; 15)cin >> a >> b; 16)c=max(a,b); 17)cout <<" the squart of max imum="<< sqrt( c ); 18)} 执行第10行时,系统会回收几个变量:()
1)#include < iostream > 2)#include < cmath > 3)using namespace std; 4)double max(double x,doubley) 5){ 6)if(x>y) 7)return x; 8)else 9)return y; 10)} 11)int main() 12){ 13)doublea,b,c; 14)cout <<" input two numbers:/n"; 15)cin >> a >> b; 16)c=max(a,b); 17)cout <<" the squart of max imum="<< sqrt( c ); 18)} 执行第15行时,若输入“8空格9回车”,则执行完第16行后,变量c的值是:()
1)#include 2)using namespace std; 3)int main() 4){ 5)int a,b,result; 6)cout<<"please input two numbers:/n"; 7)cin>>a>>b; 8)result=3*a-2*b+1; 9)cout<<"resultis<<<< result << endl; 10)} << 程序的输出结果是:()