登录
|
注册
公司
标签
文章
搜索
微软
C语言工程师
所有
有回答
没回答
新题目
有最佳答案
排序
热度
·
时间
·
经典指数
1
0
1895
main 函数执行以前,还会执行什么代码? 全局对象的构造函数 全局对象的析构函数 局部对象的构造函数 局部对象的析构函数 ...
阅读题目
微软
C语言工程师
单选题
经典指数
1
0
1848
What's the output of the following code?(3 Points) class A { public: virtual void f() { cout<<"A::f()"<<endl; } void f() const { cout<<“A::f() const"<<endl; } }; class B : A { public: void f(){ cout<<“B::f()”<<endl; } }; g(const a* a) { a->f(); } int main() { A* a = new B(); a->f(); g(a); delete a ; } B::f() B::f()const B::f() A::f()const A::f() B::f()const A::f() A::f() ...
阅读题目
微软
C语言工程师
单选题
经典指数
1
0
1827
C++是不是类型安全的? 是 不是 ...
阅读题目
微软
C语言工程师
单选题
经典指数
1
0
1813
“引用”与多态的关系? 两者没有关系 引用可以作为产生多态效果的手段 一个基类的引用不可以指向它的派生类实例 以上都不正确 ...
阅读题目
微软
C语言工程师
单选题
经典指数
1
0
1801
什么是“引用”?声明和使用“引用”要注意哪些问题? ...
阅读题目
微软
C语言工程师
问答题
经典指数
1
0
1775
Fill the blanks inside class definition class Test { public: ____ int a; ____ int b; public: Test::Test(int _a , int _b) : a( _a ) { b = _b; } }; int Test::b; int main(void) { Test t1(0 , 0) , t2(1 , 1); t1.b = 10; t2.b = 20; printf("%u %u %u %u",t1.a , t1.b , t2.a , t2.b); return 0; } Running result : 0 20 1 20 static/const const/static --/static conststatic/static None of above ...
阅读题目
微软
C语言工程师
多选题
经典指数
1
0
1733
分析一下这段程序的输出 #include<iostream> using namespace std; class B { public: B() { cout << "default constructor" << " "; } ~B() { cout << "destructed" << " "; } B(int i): data(i) { cout << "constructed by parameter" << data << " "; } private: int data; }; B Play( B b) { return b; } int main(int argc, char *argv[]) { B temp = Play(5); return 0; } co ...
阅读题目
微软
C语言工程师
单选题
经典指数
1
0
1714
In C++, what does "explicit" mean? what does "protected" mean? explicit-keyword enforces only explicit casts to be valid Protected members are accessible in the class that defines them and in classes that inherit from that class. Protected members only accessible within the class defining them. All the above are wrong ...
阅读题目
微软
C语言工程师
多选题
经典指数
1
0
1565
.h头文件中的ifndef/define/endif 的作用? 防止重复引用 规范化代码 标志被引用文件内容中可以被共享的代码 以上都不正确 ...
阅读题目
微软
C语言工程师
单选题
经典指数
<<
<
5
6
7
8
>
>>
74
题目数
1
贡献者
57
答案数
扫描后移动端查看
我也分享一个题目
"微软"公司热门职位
研发工程师
测试工程师
C#工程师
"C语言工程师"
职位热门公司
迅雷
腾讯
百度
奇虎360
华为
阿里巴巴
网易
搜狐
京东
小米
×
登录
注册
找回密码
记住登录
登录
快速注册
直接第三方登录