登录
|
注册
公司
标签
文章
搜索
微软
C语言工程师
所有
有回答
没回答
新题目
有最佳答案
排序
热度
·
时间
·
经典指数
0
0
1885
在C++ 程序中调用被C编译器编译后的函数,为什么要加extern “C”? ...
阅读题目
微软
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
2132
指出下面程序哪里可能有问题? class CBuffer { char * m_pBuffer; int m_size; public: CBuffer() { m_pBuffer=NULL; } ~CBuffer() { Free(); } void Allocte(int size) (1) { m_size=size; m_pBuffer= new char[size]; } private: void Free() { if(m_pBuffer!=NULL) (2) { delete[] m_pBuffer; m_pBuffer=NULL; } } ...
阅读题目
微软
C语言工程师
多选题
经典指数
1
0
2356
写出下列程序所有可能的运行结果。 int a; int b; int c; void F1() { b = a * 2; a = b; } void F2() { c = a + 1; a = c; } main() { a = 5; //Start F1,F2 in parallel F1(); F2(); printf("a=%d\n", a); } 11 6 12 以上都不正确 ...
阅读题目
微软
C语言工程师
多选题
经典指数
0
0
2790
已知String类定义如下: class String { public: String(const char *str = NULL); // 通用构造函数 String(const String &another); // 拷贝构造函数 ~ String(); // 析构函数 String & operater =(const String &rhs); // 赋值函数 private: char *m_data; // 用于保存字符串 }; 尝试写出类的成员函数实现。 ...
阅读题目
微软
C语言工程师
问答题
经典指数
1
0
1801
什么是“引用”?声明和使用“引用”要注意哪些问题? ...
阅读题目
微软
C语言工程师
问答题
经典指数
0
0
2863
Consider the following definition of a recursive function, power, that will perform exponentiation. int power(int b, int e) { if (e == 0) return 1; if (e %2 == 0) return power (b * b, e / 2); return b * power(b * b, e / 2); } Asymptotically (渐进地) in terms of the exponent e, the number of calls to power that occur as a result of the call power(b, e) is logarithmic linear quadratic exponential ...
阅读题目
微软
研发工程师
C语言工程师
复杂度
单选题
经典指数
1
0
2617
请说出const与#define 相比,有何优点 ? 宏常量有数据类型,而const常量没有数据类型 有些集成化的调试工具可以对const 常量进行调试,但是不能对宏常量进行调试 编译器可以对const进行类型安全检查。而对#define只进行字符替换,没有类型安全检查,并且在字符替换可能会产生意料不到的错误。 ...
阅读题目
微软
C语言工程师
多选题
经典指数
1
0
1827
C++是不是类型安全的? 是 不是 ...
阅读题目
微软
C语言工程师
单选题
经典指数
1
0
2390
#define DOUBLE(x) x+x i = 5*DOUBLE(5) i 是多少? 30 50 100 语法错误 ...
阅读题目
微软
C语言工程师
单选题
经典指数
<<
<
1
2
3
4
5
6
>
>>
74
题目数
1
贡献者
57
答案数
扫描后移动端查看
我也分享一个题目
"微软"公司热门职位
研发工程师
测试工程师
C#工程师
"C语言工程师"
职位热门公司
迅雷
腾讯
百度
奇虎360
华为
阿里巴巴
网易
搜狐
京东
小米
×
登录
注册
找回密码
记住登录
登录
快速注册
直接第三方登录