单项选择题

下面的符号中不属于C++关键字的是( )。

A.friend
B.byte
C.continue
D.namespace
<上一题 目录 下一题>
热门 试题

单项选择题
若磁盘上已存全路径文件名为c: ctest test.txt的文件,下面语句中不能打开该文件的是( )。
A.ifstream *pFile=new ifstream("c:\\ctest\\test.txt");
B.ifstream file("c:\\ctest\\test.txt");
C.ifstream file;file.open("c:\\ctest\\test.txt");
D.ifstream file("c:\etest\test.txt");
单项选择题
下面的说法中错误的是( )。
A.公有继承的基类中public成员在派生类中仍是public
B.私有继承的基类中public成员在派生类中是private
C.公有继承的基类中private成员在派生类中仍是private
D.保护继承的基类中public成员在派生类中是protected
相关试题
  • 已知递归函数fun的定义如下: int fun(i...
  • 定义字符指针char *str= hello ,已知...
  • 执行下列程序后的输出结果是______。...
  • 有如下程序: #include<iostream> usi...
  • 若需要把一个函数 void fun(): 定义...