(转)C++中返回对象的情形及RVO
摘要:http://www.cnblogs.com/xkfz007/archive/2012/07/21/2602110.html 之前有文章介绍过临时对象和返回值优化RVO方面的问题。见此处。 在C++中,返回对象这一点经常被诟病,因为这个地方的效率比较低,需要进行很多的操作,生成一些临时对象,如果对象
阅读全文
posted @
2015-06-25 16:47
IT小不点
阅读(221)
推荐(0) 编辑
mystring c++ 自己的string 封装
摘要:1 /************************************************************************* 2 > File Name: mystring.h 3 > Author: lukey 4 > Mail: lukey123@foxmail.com 5 > Created Time: Wed 17 Jun 2015...
阅读全文
posted @
2015-06-17 23:34
IT小不点
阅读(909)
推荐(0) 编辑
std::string
摘要:1 /************************************************************************* 2 > File Name: string.cpp 3 > Author: lukey 4 > Mail: lukey1...
阅读全文
posted @
2015-06-10 21:48
IT小不点
阅读(205)
推荐(0) 编辑
FTP 1.0
摘要:自己写的可以实现文件的下载(必须自己知道文件名),还有很多要优化。譬如:不能看可以下载的文件,输入错误无法处理,不能处理多个用户,每次只能下载一个结束,服务器没有完成守护进程;没有用函数封装,简化main程序。高级功能:支持文件夹选择下载,断点续传,尝试用多线程,多进程,线程池处理多个请求。 1 客...
阅读全文
posted @
2015-06-05 11:55
IT小不点
阅读(342)
推荐(0) 编辑
conflicting types for xxxx错误 (转)
摘要:pretty_print.c:31: error: conflicting types for ‘vmi_print_hex’libvmi.h:749: note: previous declaration of ‘vmi_print_hex’ was heremake[3]: *** [libvm...
阅读全文
posted @
2015-06-01 18:02
IT小不点
阅读(940)
推荐(0) 编辑