单项选择题
下列运算不能重载为友元函数的是
A.=()[]->
B.+-++--
C.><>=<=
D.+=-=*=/=
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
若磁盘上已存在某个文本文件,其全路径文件名为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");
点击查看答案&解析
单项选择题
下列符号中可以用作C++标识符的是
A._radius
B.foo~bar
C.else
D.3 room
点击查看答案&解析
相关试题
有如下类定义: class Test { public...
有如下程序: #include <iostream> u...
有如下程序: #include <lostream> u...
有如下程序: #include <iostream> u...
有如下类定义: class MyBase{ int k...