登录
|
注册
公司
标签
文章
搜索
微软
C语言工程师
所有
有回答
没回答
新题目
有最佳答案
排序
热度
·
时间
·
经典指数
1
0
1892
main 函数执行以前,还会执行什么代码? 全局对象的构造函数 全局对象的析构函数 局部对象的构造函数 局部对象的析构函数 ...
阅读题目
微软
C语言工程师
单选题
经典指数
0
0
1883
在C++ 程序中调用被C编译器编译后的函数,为什么要加extern “C”? ...
阅读题目
微软
C语言工程师
问答题
经典指数
1
0
1845
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
1826
C++是不是类型安全的? 是 不是 ...
阅读题目
微软
C语言工程师
单选题
经典指数
1
0
1811
“引用”与多态的关系? 两者没有关系 引用可以作为产生多态效果的手段 一个基类的引用不可以指向它的派生类实例 以上都不正确 ...
阅读题目
微软
C语言工程师
单选题
经典指数
1
0
1799
什么是“引用”?声明和使用“引用”要注意哪些问题? ...
阅读题目
微软
C语言工程师
问答题
经典指数
0
0
1794
如何打印出当前源文件的文件名以及源文件的当前行号? ...
阅读题目
微软
C语言工程师
问答题
经典指数
1
0
1772
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
1731
分析一下这段程序的输出 #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语言工程师
单选题
经典指数
0
0
1727
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语言工程师
单选题
经典指数
<<
<
5
6
7
8
>
>>
74
题目数
1
贡献者
57
答案数
扫描后移动端查看
我也分享一个题目
"微软"公司热门职位
研发工程师
测试工程师
C#工程师
"C语言工程师"
职位热门公司
迅雷
腾讯
百度
奇虎360
华为
阿里巴巴
网易
搜狐
京东
小米
×
登录
注册
找回密码
记住登录
登录
快速注册
直接第三方登录