填空题

在算法正确的前提下,评价一个算法的两个标准是 【1】 。

【参考答案】

时间复杂度和空间复杂度
<上一题 目录 下一题>
热门 试题

单项选择题
下列程序的输出结果是 #include<iostream.h> class Myclass public : Myclass( int i=0,int j=0) x=i; y=j; void show( )cout<< x= <<x<< < y= <<y<<endl; void show( )constcout<< x= << << y= <<y<<endl; privated: int x; int y; ; void main( ) Myclass my l (3,4); const my2(7,8); my l.show( );my2.show( );
A.x=4,y=3;x=7,y=8
B.x=3,y=4;x=7,y=8
C.x=7,y=8;x=4,y=3
D.x=8,y=7;x=7,y=8
单项选择题
有如下程序 #include<iostream.h> int func(int a,int b) return(a+b) ; void main( ) int x=2,y=5,z=8, r; r=func ( func(x,y),z); cout << r; 该程序的输出的结果是
A.12
B.13
C.14
D.15
相关试题
  • 若要在C盘根目录下作为二进制文件打开文件t...
  • 以下程序的输出结果是 【14】 。 #in...
  • 【11】 是实现C++语言编译时多态性的...
  • 下面程序的运行结果是 【8】 和 【9】...
  • 表达式x.operator++( )还可写成 【...