单项选择题

在长为64的有序线性表中进行顺序查找,最坏情况下需要比较的次数为

A.63
B.64
C.6
D.7
<上一题 目录 下一题>
热门 试题

单项选择题
若磁盘上已存在某个文本文件,其全路径文件名为d: ncre test.txt,下列语句中不能打开该文件的是
A.ifstream file("d:\ncre\test.txt");
B.ifstream file("d:\\ncre\\test.txt");
C.ifstream file;file.open("d:\\ncre\\test.txt");
D.ifstream*pFile=new ifstream("d:\\ncre\\test.txt");
单项选择题
有如下程序: int x=3: d0 x-=2: cout<<x: while(!(--x)); 执行这个程序的输出结果是
A.1
B.30
C.12
D.死循环
相关试题
  • 有如下程序: #include <iostream> u...
  • 有如下程序: #include <iostream> u...
  • 有如下程序: #include <lostream> u...
  • 有如下类定义: class MyBase int k;...
  • 有如下程序: #include <iostream> u...