登录
|
注册
公司
标签
文章
搜索
C语言工程师
热门公司
迅雷
腾讯
百度
奇虎360
微软
华为
所有
有回答
没回答
新题目
有最佳答案
排序
热度
·
时间
·
经典指数
1
0
1677
下列程序的输出结果为 #include using namespace std; int func(int n) { if (n < 1) return 1; else return n + func(n - 1); return 0; } int main() { cout << func(5) << endl; return 0; } 0 10 15 16 ...
阅读题目
迅雷
C语言工程师
单选题
经典指数
1
0
1675
假设某C工程包含a.c和b.c两个文件,在a.c中定义了一个全局变量foo, 在b.c中想访问这一变量时该怎么做? 在b.c中同样定义同名的foo a.c中声明时extern int foo b.c中声明时extern int foo 在一个工程中就可以访问到,不用做任何操作 ...
阅读题目
网易
C语言工程师
单选题
经典指数
1
0
1672
阅读下面代码,程序会打印出来的值是? #include <stdio.h> void f(char**p){ *p +=2; } main() { char *a[] = {"123","abc","456"},**p; p = a; f(p); printf("%s\r\n",*p); } 123 abc 456 3 ...
阅读题目
腾讯
C语言工程师
单选题
经典指数
1
0
1661
如果类的定义如下,则以下代码正确并且是良好编程风格的是: class Object { public: virtual *Obiject() {} //… }; std::auto_ptr<Object>pObj(new Object); std::vectorr<std::auto_ptr<Object*>>object_vector; std::auto_ptr<Object*>pObj(new Object); std::vectorr<std::auto_ptr<Object>>object_vector; ...
阅读题目
迅雷
C语言工程师
单选题
经典指数
1
0
1651
Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally identical and the nodes have the same value. ...
阅读题目
C语言工程师
树
面试题
经典指数
1
0
1645
用户启动迅雷时,服务器会以uid,login_time,logout_time的形式记录用户的在线时间;用户在使用迅雷下载时,服务器会以taskid,start_time,finish_time的形式记录任务的开始时间和结束时间。有效下载时间是指用户在开始时间和结束时间之间的在线时间,由于用户可能在下载的时候退出迅雷,因此有效下载时间并非finish_time 和 start_time之差。假设登录记录保存在login.txt中,每一行代表用户的上下线记录;下载记录保存在task.txt中,每一行代表一个任务记录,记录的字段之间以空格分开。计算每个用户的有效下载时间和总在线时间的比例。注意:请尽量使用STL的数据结构和算法。 ...
阅读题目
迅雷
C语言工程师
问答题
经典指数
1
0
1629
以下哪个方法没有在标准 C++库中定义? istream & istream ostream & ostream istream &ostream ostream & ends( ostream & ) istream & ends( ostream & ) ...
阅读题目
C语言工程师
C语言工程师
单选题
经典指数
1
0
1629
以下哪个方法没有在标准 C++库中定义? istream & istream ostream & ostream istream &ostream ostream & ends( ostream & ) istream & ends( ostream & ) ...
阅读题目
C语言工程师
C语言工程师
单选题
经典指数
1
0
1617
Below is usual way we find one element in an array const int *find1(const int* array, int n, int x) { const int* p = array; for(int i = 0; i < n; i++) { if(*p == x) { return p; } ++p; } return 0; } In this case we have to bear the knowledge of value type "int", the size of array, even the existence of an array. Would you re-write it using template to eliminate all these dependencies? ...
阅读题目
腾讯
C语言工程师
问答题
经典指数
1
0
1613
使用操作符 对数据进行格式输出时,应包含( )文件。 fstream.h stdlib.h iostream.h iomanip.h ...
阅读题目
C语言工程师
C语言工程师
单选题
经典指数
<<
<
95
96
97
98
99
100
>
>>
998
题目数
2
贡献者
1010
答案数
扫描后移动端查看
我也分享一个题目
相关标签
迅雷
研发工程师
2016
腾讯
百度
奇虎360
2015
微软
华为
2014
同类标签
研发工程师
游戏运营
产品运营
运维工程师
Android
测试工程师
.NET
iOS
机器学习
Go
微信公众号
欢迎加入,一起群聊
×
登录
注册
找回密码
记住登录
登录
快速注册
直接第三方登录