04 2013 档案

摘要:假如当前工作目录/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 阅读(175) 评论(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 阅读(395) 评论(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 阅读(108) 评论(0) 推荐(0)