登录
|
注册
公司
标签
文章
搜索
微软
C语言工程师
所有
有回答
没回答
新题目
有最佳答案
排序
热度
·
时间
·
经典指数
1
0
2804
已知strcpy的函数原型:char *strcpy(char *strDest, const char *strSrc)其中strDest 是目的字符串,strSrc 是源字符串。不调用C++/C 的字符串库函数,请编写函数 strcpy。 ...
阅读题目
微软
C语言工程师
问答题
经典指数
1
0
2470
#include<file.h> 与 #include "file.h"的区别? 前者首先从当前工作路径搜寻并引用file.h,而后者首先从Standard Library的路径寻找和引用file.h 前者首先从Standard Library的路径寻找和引用file.h,而后者首先从当前工作路径搜寻并引用file.h 两者都是首先从Standard Library的路径寻找和引用file.h 两者都是首先从当前工作路径搜寻并引用file.h ...
阅读题目
C语言工程师
微软
C语言工程师
单选题
经典指数
1
0
2326
有哪几种情况只能用intialization list 而不能用assignment? 当类中含有const成员变量 基类无默认构造函数时,有参的构造函数都需要初始化表。 当类中含有reference成员变量 当类中含有static成员变量 ...
阅读题目
微软
C语言工程师
多选题
经典指数
1
0
3396
下列关于联合的描述中,错误的是? 联合变量定义时不可初始化 联合的成员是共址的 联合的成员在某一个时刻只有当前的是有效的 联合变量占有的内存空间是该联合成员占有最大内存空间的成员所需的存储空间 ...
阅读题目
微软
C语言工程师
单选题
经典指数
1
0
1802
什么是“引用”?声明和使用“引用”要注意哪些问题? ...
阅读题目
微软
C语言工程师
问答题
经典指数
1
0
2470
#include<file.h> 与 #include "file.h"的区别? 前者首先从当前工作路径搜寻并引用file.h,而后者首先从Standard Library的路径寻找和引用file.h 前者首先从Standard Library的路径寻找和引用file.h,而后者首先从当前工作路径搜寻并引用file.h 两者都是首先从Standard Library的路径寻找和引用file.h 两者都是首先从当前工作路径搜寻并引用file.h ...
阅读题目
C语言工程师
微软
C语言工程师
单选题
经典指数
1
0
3024
How many times is f() called when calculating f(10)? int f(int x) { if(x <= 2) return 1; return f(x - 2) + f(x - 4) + 1; } 14 18 20 24 None of the above ...
阅读题目
微软
研发工程师
递归
C语言工程师
单选题
经典指数
1
0
3028
下面程序的执行结果: class A{ public: long a; }; class B : public A { public: long b; }; void seta(A* data, int idx) { data[idx].a = 2; } int main(int argc, char *argv[]) { B data[4]; for(int i=0; i<4; ++i){ data[i].a = 1; data[i].b = 1; seta(data, i); } for(int i=0; i<4; ++i){ std::cout << data[i].a << data[i].b; } return 0; } 11111111 12121212 11112222 21212121 22221111 ...
阅读题目
微软
研发工程师
C语言工程师
单选题
经典指数
1
0
1735
分析一下这段程序的输出 #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
2557
What is the output of the following piece of C++ code? using namespace std; struct Item { char c; Item *next; }; Item *Routine1(Item *x) { Item *prev = NULL, *curr = x; while (curr) { Item *next = curr->next; curr->next = prev; prev = curr; curr = next; } return prev; } void Routine2(Item *x) { Item *curr = x; while (curr) { cout << curr->c << ” “; curr = curr->next; } ...
阅读题目
微软
研发工程师
C语言工程师
单选题
经典指数
<<
<
1
2
3
4
5
6
>
>>
74
题目数
1
贡献者
57
答案数
扫描后移动端查看
我也分享一个题目
"微软"公司热门职位
研发工程师
测试工程师
C#工程师
"C语言工程师"
职位热门公司
迅雷
腾讯
百度
奇虎360
华为
阿里巴巴
网易
搜狐
京东
小米
×
登录
注册
找回密码
记住登录
登录
快速注册
直接第三方登录