登录
|
注册
公司
标签
文章
搜索
微软
C语言工程师
所有
有回答
没回答
新题目
有最佳答案
排序
热度
·
时间
·
经典指数
1
0
6535
关于函数模板,描述错误的是? 函数模板必须由程序员实例化为可执行的函数模板 函数模板的实例化由编译器实现 一个类定义中,只要有一个函数模板,则这个类是类模板 类模板的成员函数都是函数模板,类模板实例化后,成员函数也随之实例化 ...
阅读题目
微软
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语言工程师
多选题
经典指数
0
0
2739
文件中有一组整数,要求排序后输出到另一个文件中。 ...
阅读题目
微软
C语言工程师
操作系统
排序
问答题
经典指数
1
0
2852
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
2801
已知strcpy的函数原型:char *strcpy(char *strDest, const char *strSrc)其中strDest 是目的字符串,strSrc 是源字符串。不调用C++/C 的字符串库函数,请编写函数 strcpy。 ...
阅读题目
微软
C语言工程师
问答题
经典指数
0
0
1655
将“引用”作为函数返回值类型的格式、好处和需要遵守的规则? ...
阅读题目
微软
C语言工程师
问答题
经典指数
1
0
2365
请定义一个宏,比较两个数a、b的大小,不能使用大于、小于、if语句。 ...
阅读题目
微软
基础知识
C语言工程师
问答题
经典指数
1
0
3025
下面程序的执行结果: 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
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
2554
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语言工程师
单选题
经典指数
<<
<
5
6
7
8
>
>>
74
题目数
1
贡献者
57
答案数
扫描后移动端查看
我也分享一个题目
"微软"公司热门职位
研发工程师
测试工程师
C#工程师
"C语言工程师"
职位热门公司
迅雷
腾讯
百度
奇虎360
华为
阿里巴巴
网易
搜狐
京东
小米
×
登录
注册
找回密码
记住登录
登录
快速注册
直接第三方登录