最近有点烦,好久没更新···
2013-10-09 21:31
344 查看
笔试注意
1. 类的大小:位对齐及虚函数指针地址。
2. 各类排序算法的复杂度和稳定性。
3. 次短路(网易笔试题)。http://www.cnblogs.com/XBWer/archive/2012/09/03/2669393.html。
4. A,B,C,D类地址。
5. http错误:
"400" : Bad Request
"401" : Unauthorized
"402" : Payment Required
"403" : Forbidden
"404" : Not Found
"405" : Method NotAllowed
"406" : Not Acceptable
"407" : Proxy AuthenticationRequired
"408" : Request Time-out
"409" : Conflict
"500" : Internal ServerError
"501" : Not Implemented
"502" : Bad Gateway
"503" : ServiceUnavailable
"504" : Gateway Time-out
"505" : HTTP Version notsupported
6. class a = b; 调用复制构造函数
7. template<typename t1, typename t2>
int func(t1 a, t2 b=0)
{
return 1;
}
int main()
{
printf("%d",func(2.1));//无法匹配func(double);
}
8. 大端小端模式:举一个例子,比如数字0x12 34 56 78在内存中的表示形式为:
1)大端模式:
低地址 -----------------> 高地址
0x12 | 0x34 | 0x56 | 0x78
2)小端模式:
低地址 ------------------> 高地址
0x78 | 0x56 | 0x34 | 0x12
可见,大端模式和字符串的存储模式类似。
输出d;
1. 类的大小:位对齐及虚函数指针地址。
2. 各类排序算法的复杂度和稳定性。
3. 次短路(网易笔试题)。http://www.cnblogs.com/XBWer/archive/2012/09/03/2669393.html。
4. A,B,C,D类地址。
5. http错误:
"400" : Bad Request
"401" : Unauthorized
"402" : Payment Required
"403" : Forbidden
"404" : Not Found
"405" : Method NotAllowed
"406" : Not Acceptable
"407" : Proxy AuthenticationRequired
"408" : Request Time-out
"409" : Conflict
"500" : Internal ServerError
"501" : Not Implemented
"502" : Bad Gateway
"503" : ServiceUnavailable
"504" : Gateway Time-out
"505" : HTTP Version notsupported
6. class a = b; 调用复制构造函数
7. template<typename t1, typename t2>
int func(t1 a, t2 b=0)
{
return 1;
}
int main()
{
printf("%d",func(2.1));//无法匹配func(double);
}
8. 大端小端模式:举一个例子,比如数字0x12 34 56 78在内存中的表示形式为:
1)大端模式:
低地址 -----------------> 高地址
0x12 | 0x34 | 0x56 | 0x78
2)小端模式:
低地址 ------------------> 高地址
0x78 | 0x56 | 0x34 | 0x12
可见,大端模式和字符串的存储模式类似。
#include <cstdio> #include <iostream> #include <cstring> using namespace std; union{ char a; char b; int d; }c; int main() { c.a = 'a'; c.b = 'b'; c.d = 0x61626364; printf("%c\n", c.a); }
输出d;
相关文章推荐
- 数据结构---各种树模板 持续更新···
- 好久没有到这儿来了,最近都有点忙!
- 懒了好久了,更新一下最近一段时间的活动
- 最近有点时间-赶紧学习,好久没有写东西了
- 《程序设计教程-用C++语言编程》的解答好久没更新了,有朋友需要,俺打算最近开始更新。
- hdu 1698 Just a Hook(线段树区间更新·经典)
- Blog好久没更新了,最近开始有时间,将多写一些。
- HDU 3308 LCIS (线段树·单点更新·区间合并)
- 最近在看英文版的高数书calculus···
- 最近有点时间-赶紧学习,好久没有写东西了
- 好久没有写博客了,最近更新计划
- hihoCoder - 1062 - 最近公共祖先·一 (树的最近公共祖先问题!)
- sql 优化 ·· 持续更新··
- blog好久没有更新,最近忙着写论文找工作
- hiho一下 第十五周 最近公共祖先·二 - 更新一下tarjan离线LCA模板
- ONE · 一个简单更新
- 每天的记录,慢慢来。<十二月> December ··········持续更新中
- 好久没有上来更新资料了,有点对不起自己了
- 好久没更新BLOG了,最近感觉生活总是得大于失,送大家一首歌 I do it for you!
- hihoCoder_#1062_最近公共祖先·一