登录
|
注册
公司
标签
文章
搜索
迅雷
C语言工程师
所有
有回答
没回答
新题目
有最佳答案
排序
热度
·
时间
·
经典指数
0
0
2071
有如下程序段: #include <iostream> void GetMemeory(char *p) { p = (char *)malloc(100); } void Test() { char *str = NULL; GetMemeory(str); strcpy(str, "Thunder"); strcat(str + 2, "Downloader"); printf(str); } 请问运行Test函数结果是: Thunder Downloader under Downloader Thunderownloader 程序崩溃 ...
阅读题目
迅雷
C语言工程师
编译和体系结构
单选题
经典指数
0
0
2060
实现 void strtol(char* num_str,char** endptr,int base) 函数,此函数的功能是将一个字符串num_str转换成整数。num_str中保存的是待转换的字符串。字符串有8,10,16进制三种形式,保存在base参数中,若base为0,则需要自己判断具体的进制。要判断是否溢出,若为上溢出,返回INT_MAX,若为下溢出,返回INT_MIN。字符串num_str可能存在非法字符,若存在非法字符,返回非法字符前面的转换结果,并将endptr指向第一个非法字符,若没有非法字符,不需要返回endptr(不能使用任何库函数)。 ...
阅读题目
迅雷
C语言工程师
字符串
问答题
经典指数
0
0
2053
int main() { unsigned char i = 1; i -= 4; printf(“the value of i is: % d”, i); } 请问i的值是: 253 254 255 256 ...
阅读题目
迅雷
C语言工程师
单选题
经典指数
0
0
2049
如下程序 #include "stdio.h" struct IU { virtual void QI(void **p) = 0; }; struct IA: public IU { virtual void func() = 0; }; struct IB: public IU { virtual void func() = 0; }; class C: public IA, public IB { public: void IA::func() { printf("IA func\n"); } void IB::func() { printf("IB func\n"); } void QI(void **p) { *p = (IA *)this; } }; void main() { C c; IB *pB = &c; IA *pA; pB->QI((void **)&pA); ...
阅读题目
迅雷
C语言工程师
单选题
经典指数
0
0
2045
迅雷进行一个活动,这个活动需要客户端访问我们服务器。但活动为了限制访问量,做了如下规定,那就是每一个帐户在3600秒内只能参加不多于5次。请实现类c_user_enabled,完成此限制功能。 类接口定义: Clakk c_user_enabled { Public: Bool init(); Bool is_user_enabled(string user_name);//user_name表示用户帐户标识 Bool destroy(); }; 附: 1)需要考虑线程安全; 2)可以使用stl; 3)可以使用如下的一个hash函数: Unsigned str_hash(string str); 4)可以使用如下锁: Class c_lock { Public: Void lock(); Void unlock(); Private: …; }; ...
阅读题目
迅雷
C语言工程师
哈希
问答题
经典指数
0
0
1963
阅读以下程序: main() { int x; scanf(“ % d”, &x); if (x - < 5)printf(“ % d”, x); else printf(“ % d”, x++); } 程序运行后,如果从键盘上输入5,则输出结果是 3 4 5 6 ...
阅读题目
迅雷
C语言工程师
单选题
经典指数
0
0
1869
以下代码中,A的构造函数和析构函数分别执行了几次: A*pa=new pa[10]; delete []pa; 1、1 10、10 1、10 10、1 ...
阅读题目
迅雷
C语言工程师
单选题
经典指数
0
0
1595
编译运行如下程序会出现什么结果 #include <stdio.h> class A { A() { printf("A()"); } }; void main() { A a; } 则输出 A() 编译错误 链接错误 以上都不对 ...
阅读题目
迅雷
C语言工程师
单选题
经典指数
0
0
1573
编译运行如下程序会出现什么结果 #include <iostream> using namespace std; class A { A() { printf("A()"); } public: static A &get() { static A a; return a; } }; int main() { A::get(); return 0; } 输出A() 编译错误 链接错误 以上都不对 ...
阅读题目
迅雷
C语言工程师
单选题
经典指数
<<
<
1
2
3
4
5
6
>
>>
250
题目数
1
贡献者
203
答案数
扫描后移动端查看
我也分享一个题目
"迅雷"公司热门职位
研发工程师
"C语言工程师"
职位热门公司
腾讯
百度
奇虎360
微软
华为
阿里巴巴
网易
搜狐
京东
小米
×
登录
注册
找回密码
记住登录
登录
快速注册
直接第三方登录