登录
|
注册
公司
标签
文章
搜索
C语言工程师
热门公司
迅雷
腾讯
百度
奇虎360
微软
华为
所有
有回答
没回答
新题目
有最佳答案
排序
热度
·
时间
·
经典指数
0
0
2443
以下程序的输出结果是________。 void fut(int**s,int p[2][3]) { **s=p[1][1]; } void main( ) { int a[2][3]={1,3,5,7,9,11},*p; p=(int*)malloc(sizeof(int)); fut(&p,a); cout<< *p; } 7 9 1 11 ...
阅读题目
C语言工程师
C语言工程师
单选题
经典指数
0
0
2369
下列程序的输出结果是 #include<iostream> using namespace std; int main() { char p1[10] = "abcd", *p2, str[10] = "xyz"; p2 = "ABCD"; strcpy(str + 2, strcat(p1 + 2, p2 + 1)); printf(" %s", str); } xyabcAB abcABz ABabcz xycdBCD ...
阅读题目
迅雷
C语言工程师
单选题
经典指数
0
0
2358
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 _tmain(int argc, __TCHAR *argv[]) { 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); } Running result: 0 20 1 20 static/const const/static –/static const static/static None of the above ...
阅读题目
微软
研发工程师
C语言工程师
多选题
经典指数
0
0
2355
把字符串转换为整数 例如:"-123" -> -123 #include #include using namespace std; int num(string str) { int num = 0; for (int i = 0; i < ___1___; i ++) { int k = ___2__; num = __3___; } return num; } int main() { string str = "-123"; int n = 0; if ( str[0] == '-' ) n = -1 * num (str.substr(1)); else n = num(str); cout ...
阅读题目
腾讯
C语言工程师
字符串
问答题
经典指数
0
0
2334
用户启动迅雷时,服务器会以uid,login_time, logout_time的形式记录用户的在线时间;用户在使用迅雷下载时,服务器会以taskid,start_time,finish_time的形式记录任务的开始时间和结束时间。有效下载时间是指用户在任务开始时间和结束时间之间的在线时间,由于用户可能在下载的时候退出迅雷,因此有效下载时间并非finish_time和start_time之差。假设登录记录保持在文件login.txt中,每一行代表一个用户的上下线记录:下载记录保存在文件task.txt中,每一行代表一个任务记录,记录的字段之间以空格分开。计算每个用户的有效下载时间和总在线时间的比例。注意:请尽量使用STL的数据结构和算法。 ...
阅读题目
迅雷
C语言工程师
问答题
经典指数
0
0
2318
通过键盘输入一串小写字母(a~z)组成的字符串。请编写一个字符串过滤程序,若字符串中出现多个相同的字符,将非首次出现的字符过滤掉。 比如字符串“abacacde”过滤结果为“abcde”。 要求实现函数:void stringFilter(const char *pInputStr, long lInputLen, char *pOutputStr); ...
阅读题目
C语言工程师
华为
问答题
经典指数
0
0
2311
下面哪种C/C++分配内存的方法会将分配的空间初始化为0 malloc() calloc() realloc() new[ ] ...
阅读题目
奇虎360
2015
C语言工程师
单选题
经典指数
0
0
2297
下面的函数实现在一个固定的数上加上一个数,有什么错误,改正 int add_n(int n) { static int i = 100; i += n; return i; } ...
阅读题目
百度
C语言工程师
问答题
经典指数
0
0
2291
设无向图的顶点个数为n,则该图最多有( )条边。 n-1 n(n-1)/2 n2 n(n+1)/2 ...
阅读题目
C语言工程师
图
单选题
经典指数
0
0
2285
char str[]=”Hello”,sizeof(str)=() 4 5 6 7 ...
阅读题目
迅雷
C语言工程师
数组
单选题
经典指数
<<
<
5
6
7
8
9
10
>
>>
128
题目数
2
贡献者
1010
答案数
扫描后移动端查看
我也分享一个题目
相关标签
迅雷
研发工程师
2016
腾讯
百度
奇虎360
2015
微软
华为
2014
同类标签
研发工程师
游戏运营
产品运营
运维工程师
Android
测试工程师
.NET
iOS
机器学习
Go
微信公众号
欢迎加入,一起群聊
×
登录
注册
找回密码
记住登录
登录
快速注册
直接第三方登录