填空题

算法的复杂度主要包括 【1】 复杂度和空间复杂度。

【参考答案】

时间
<上一题 目录 下一题>
热门 试题

单项选择题
下列程序的输出结果是______。 #include<iostream> using namespace std; int main() { char a []= Hello, World ; char *ptr=a; while (* ptr) { if(*ptr)= ’a’&& *ptr’ <= ’z’) cout << char(*ptr+’A’-’a’); else cout << *ptr; ptr++; } return 0; }
A.HELLO,WORLD
B.Hello,World
C.hELLO, wORLD
D.hello,world
单项选择题
有以下程序: # include <iostream> int i=0; void fun() {static iht i=1; std::cout<<i++<<’,’; } std:: cout<<i<<’,’; int main() { fun(); fun(); return 0; }程序执行后的输出结果是______。
A.1,2,1,2,
B.1,2,2,3,
C.2,0,3,0,
D.1,0,2,0,
相关试题
  • 下列程序输出结果是 【13】 。 includ...
  • 与成员访问表达式p→name 等价的表达式是...
  • 下列程序的输出结果是 【15】 。 #in...
  • 下列程序的输出结果是 【11】 。 #in...
  • 下面是用来计算n的阶乘的递归函数,请将该...