登录
|
注册
公司
标签
文章
搜索
微软
C语言工程师
所有
有回答
没回答
新题目
有最佳答案
排序
热度
·
时间
·
经典指数
0
0
2789
已知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
2205
struct 和 class 的区别? struct 的成员默认是公有的 struct 的成员默认是私有的 类的成员默认是私有的 类的成员默认是公有的 ...
阅读题目
微软
C语言工程师
多选题
经典指数
1
0
2853
In C++, which of the following keyword(s) can be used on both a variable and a function? static virtual extern inline const ...
阅读题目
微软
2015
腾讯
C语言工程师
多选题
经典指数
1
0
3393
下列关于联合的描述中,错误的是? 联合变量定义时不可初始化 联合的成员是共址的 联合的成员在某一个时刻只有当前的是有效的 联合变量占有的内存空间是该联合成员占有最大内存空间的成员所需的存储空间 ...
阅读题目
微软
C语言工程师
单选题
经典指数
1
0
4490
类B从类A派生,则类B可以访问类A中的( )成员? public成员 private成员 protected成员 数据成员 函数成员 ...
阅读题目
Java
微软
2015
腾讯
C语言工程师
多选题
经典指数
1
0
2695
下面程序执行结果: using namespace std; class A{ public: virtual void f() { cout << "A::f() "; } void f() const { cout << "A::f() const "; } }; class B : public A { public: void f() { cout << "B::f() "; } void f() const { cout << "B::f() const "; } }; void g(const A* a) { a->f(); } int main(int argc, char *argv[]) { A* p = new B(); p->f(); g(p); delete(p); return 0; } B::f() B::f() const B:: ...
阅读题目
微软
研发工程师
C语言工程师
单选题
经典指数
1
0
3158
请编写能直接实现strstr()函数功能的代码。 ...
阅读题目
微软
C语言工程师
字符串
问答题
经典指数
0
0
1730
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语言工程师
单选题
经典指数
1
0
3639
在 C 语言中下面那个语句的结果是 1 ? main 函数正常结束的返回值 return 7&1; char *p="hello"; return p == "hello"; 上面都不对 ...
阅读题目
微软
研发工程师
C语言工程师
多选题
经典指数
1
0
2491
请编写实现malloc()内存分配函数功能一样的代码。 ...
阅读题目
微软
C语言工程师
操作系统
问答题
经典指数
<<
<
1
2
3
4
5
6
>
>>
74
题目数
1
贡献者
57
答案数
扫描后移动端查看
我也分享一个题目
"微软"公司热门职位
研发工程师
测试工程师
C#工程师
"C语言工程师"
职位热门公司
迅雷
腾讯
百度
奇虎360
华为
阿里巴巴
网易
搜狐
京东
小米
×
登录
注册
找回密码
记住登录
登录
快速注册
直接第三方登录