登录
|
注册
公司
标签
文章
搜索
C语言工程师
热门公司
迅雷
腾讯
百度
奇虎360
微软
华为
所有
有回答
没回答
新题目
有最佳答案
排序
热度
·
时间
·
经典指数
0
0
1937
下列程序的输出结果: #include <iostream> using namespace std; class A { public: void print() { cout << "A:print()"; } }; class B: private A { public: void print() { cout << "B:print()"; } }; class C: public B { public: void print() { A: print(); } }; int main() { C b; b.print(); } A:print() B:print() 编译出错 ...
阅读题目
京东
C语言工程师
单选题
经典指数
0
0
1928
There are two int variables: a and b, don’t use “if”, “? :”, “switch”or other judgement statements, find out the biggest one of the two numbers. ...
阅读题目
微软
基础知识
C语言工程师
问答题
经典指数
0
0
1886
在C++ 程序中调用被C编译器编译后的函数,为什么要加extern “C”? ...
阅读题目
微软
C语言工程师
问答题
经典指数
0
0
1872
以下代码中,A的构造函数和析构函数分别执行了几次: A*pa=new pa[10]; delete []pa; 1、1 10、10 1、10 10、1 ...
阅读题目
迅雷
C语言工程师
单选题
经典指数
0
0
1858
using namespace std; class Base { int x; public: Base(int b): x(b) {} virtual void display() { cout << x << endl; } }; class Derived: public Base { int y; public: Derived(int d): Base(d), y(d) {} void display() { cout << y << endl; } }; int main() { Base b(2); Derived d(3); b.display(); d.display(); Base *p = &d; p->display(); system(" ...
阅读题目
腾讯
C语言工程师
单选题
经典指数
0
0
1842
下面程序的输出结果是__________。 #include < iostream.h> #define SQR(A) A*A void main() { int x=6,y=3,z=2; x/=SQR(y+z)/SQR(y+z); cout< < x< < endl; } 5 6 1 0 ...
阅读题目
C语言工程师
C语言工程师
单选题
经典指数
0
0
1842
下面程序的输出结果是__________。 #include < iostream.h> #define SQR(A) A*A void main() { int x=6,y=3,z=2; x/=SQR(y+z)/SQR(y+z); cout< < x< < endl; } 5 6 1 0 ...
阅读题目
C语言工程师
C语言工程师
单选题
经典指数
0
0
1841
#include <filename.h> 和 #include“filename.h” 有什么区别? 没有区别 前者用来包含开发环境提供的库头文件,后者用来包含自己编写的头文件 前者用来包含自己编写的头文件,后者用来包含开发环境提供的库头文件 ...
阅读题目
C语言工程师
华为
单选题
经典指数
0
0
1800
如何打印出当前源文件的文件名以及源文件的当前行号? ...
阅读题目
微软
C语言工程师
问答题
经典指数
0
0
1734
What is the result of the following program? char *f(char *str , char ch) { char *it1 = str; char *it2 = str; while(*it2 != '\0') { while(*it2 == ch) { it2++; } *it1++ = *it2++; } return str; } int main(void) { char *a = new char[10]; strcpy(a , "abcdcccd"); cout<<f(a, 'c'); return 0; } abdcccd abdd abcc abddcccd Access violation ...
阅读题目
微软
C语言工程师
单选题
经典指数
<<
<
11
12
13
>
>>
128
题目数
2
贡献者
1010
答案数
扫描后移动端查看
我也分享一个题目
相关标签
迅雷
研发工程师
2016
腾讯
百度
奇虎360
2015
微软
华为
2014
同类标签
研发工程师
游戏运营
产品运营
运维工程师
Android
测试工程师
.NET
iOS
机器学习
Go
微信公众号
欢迎加入,一起群聊
×
登录
注册
找回密码
记住登录
登录
快速注册
直接第三方登录