摘要: A sorting method isstableif it preserves the relative order of equal keys in the array.For example, suppose, in our internet commerce application, that we enter transactions into an array as they arrive, so they are in order of the time field in the array. Now suppose that the application requires t 阅读全文
posted @ 2013-05-01 23:33 ustcwizard 阅读(153) 评论(0) 推荐(0)
摘要: 假如当前工作目录/home/john/下有一个文本文件test.txt,现用命令ln -s test.txt /tmp/test.txt ,问在/home/目录下cat /tmp/test.txt是否能查看到/home/john/test.txt文件中的内容?为什么?答:不可以,会造成 "Too many levels of symbolic links"。应该使用绝对路径:ln -s /home/john/test.txt /tmp/test.txt。 阅读全文
posted @ 2013-04-25 16:39 ustcwizard 阅读(168) 评论(0) 推荐(0)
摘要: 本质差别:1. Debug版本含有调试信息,Release版本没有2. Release版本进行了优化,Debug版本没有下面分别是Debug版本和Release版本的编译选项。Debug版本:/MDd 使用 Debug runtime library(调试版本的运行时刻函数库)/Od 关闭优化开关/D"_DEBUG" 相当于#define _DEBUG,打开编译调试代码开关/GZ 帮助捕获内存错误Release版本:/MD 使用发布版本的运行时刻函数库/02 打开优化开关/D"NODEBUG" 关闭条件编译调试代码开关/GF 合并重复的字符串,并将字符串 阅读全文
posted @ 2013-04-23 21:41 ustcwizard 阅读(382) 评论(0) 推荐(0)
摘要: int recvfrom( _In_SOCKET s, _Out_char *buf, _In_int len, _In_int flags, _Out_struct sockaddr *from, _Inout_opt_int *fromlen);需要牢牢记住的是:fromlen指向的是struct sockaddr的长度 阅读全文
posted @ 2013-04-18 20:55 ustcwizard 阅读(106) 评论(0) 推荐(0)
摘要: ctags --c++-kinds=+px-cn --fields=+a --extra=+q -R--c++-kinds=+px-cn : 增加函数原型、外部变量定义,减去类、命名空间--fields=+a : 在tags中加入成员信息--extra=+q : 增加修饰符(若没此项,则不能进行成员补全) 阅读全文
posted @ 2012-10-29 00:19 ustcwizard 阅读(164) 评论(0) 推荐(0)
摘要: 有一些注意点,你需要知道: 1. 面试之前,一定要做准备,多了解公司的情况。 2. 你提出的问题,应该围绕"这份工作是否合适我"这个中心点,其他与应聘关系不大的问题,不宜多问。 3. 提问的时候,要自然放松,不要害羞,就把它当作普通的聊天。你要表现出对公司的真诚兴趣。 4. 提问要直接了当,不要绕圈子。提出问题之后,你要保持安静,让面试官多说话。 5. 面试官回答的时候,你可以做笔记,或者事先询问能不能做。笔记必须简短,你的大部分时间,要用来全神贯注倾听面试官的回答,并与其有眼神的交流。 6. 面试结束后一周内,最好打一个电话或发一封邮件,了解公司对你的反馈意见。即使面试失 阅读全文
posted @ 2012-09-04 12:00 ustcwizard 阅读(147) 评论(0) 推荐(0)
摘要: '#':一个#的意思是将参数变为字符串,例如:#define tostring(str) #str"##"两个#的意思是把参数变为字符串并且与其他字符串连接,例如:#define dofunc(funcname) foo_##funcname() 阅读全文
posted @ 2012-07-25 16:16 ustcwizard 阅读(472) 评论(0) 推荐(0)
摘要: 利用diskpart.exe隐藏磁盘分区select disk nlist partitionselect partition mdetail partitionset id=07 override //取消隐藏set id=12 override //隐藏该分区 阅读全文
posted @ 2012-07-18 15:52 ustcwizard 阅读(240) 评论(0) 推荐(0)
摘要: 2.6.32-220.el6.i686其中:2,主版本号6,次版本好(奇数表示开发版本,偶数表示稳定版本)32,修订版本(表示修订的次数)220,表示该版本第220次微调el6,表示Enterprise Linux 6i686,表示CPU体系结构 阅读全文
posted @ 2012-07-17 17:42 ustcwizard 阅读(151) 评论(0) 推荐(0)
摘要: 在显示的每一行中:第1段为文件类型和权限第2段为节点数(i-node)第3段为所有者第4段为所属群组第5段为文件大小,单位为字节(用 ls -lh会显示的更加人性化)第6段为最后修改时间(#ls -l --full-time 可以显示完整时间)第7段文件名称 (.表示但前目录 ..表示上级目录 ,如果文件前有.则表示此文件为隐藏文件)对于目录/文件名的颜色:白色:表示普通文件蓝色:表示目录绿色:表示可执行文件红色:表示压缩文件浅蓝色:链接文件红色闪烁:表示链接的文件有问题黄色:表示设备文件灰色:表示其他文件 阅读全文
posted @ 2012-06-28 15:48 ustcwizard 阅读(296) 评论(0) 推荐(0)