
C++
pop1210
这个作者很懒,什么都没留下…
展开
-
xdebug(32) : warning C4229: 使用了记时错误 : 忽略数据上的修饰符
原址错误代码:#include "stdafx.h"#include "Test_Banana.h"#include "Test_BananaDlg.h"#ifdef _DEBUG#define new DEBUG_NEW#endif#include 正确代码:#include "stdafx.h"#include "Test_Banana.h"#include "Test_Ban转载 2016-06-21 15:37:42 · 1501 阅读 · 0 评论 -
拷贝构造函数
拷贝构造函数转载 2016-06-20 16:11:31 · 513 阅读 · 0 评论 -
查询并删除回收站内容
Codes:////////////////////////////////////////////////////////////////////////////原文:http://hi.baidu.com/hypkb/blog/item/a35950238b2242a34623e8a5.html//查询并删除回收站内容//初始化SHQUERYRBINFO结构SHQUERYR原创 2009-09-27 18:40:00 · 1335 阅读 · 0 评论 -
STL容器的遍历删除操作erase
#include #include #include #include #include #include using namespace std;int main(){ //--- vector.remove_if vector v1; vector ::iterator Iter1, new_end; int i; for ( i = 0 ; i <= 9 ;原创 2016-06-24 09:51:35 · 431 阅读 · 0 评论 -
提高VS2010的运行速度:关闭IntelliTrace和拼写检查
原址任务管理器,CPU和内存都不高,为何vs2010卡的要命?原因就是VS2010不停地读硬盘导致的; 写代码2/3的时间都耗在卡上了,太难受了; 研究发现,VS2010如果你装了VC等语言,那么它就会自动装SQL Server2010的功能,用于智能化.并且在工程目录下产生了一个超大的数据库文件sdf,近百兆,太狠了.对了,就是关闭了它的自动识别功 能,VS2010速度快了5倍以上,转载 2016-06-24 10:53:57 · 2983 阅读 · 0 评论 -
实现std::string的format函数
std::string string_format(const char* format, ...){#if 1 // 最大长度限制:1024 - 1 char buff[1024] = {0}; va_list args; va_start(args, format); vsprintf_s(buff, sizeof(buff), format, args); va_end(ar原创 2016-06-21 18:24:13 · 6490 阅读 · 0 评论 -
typename关键字
typename关键字转载 2016-06-20 16:02:38 · 300 阅读 · 0 评论 -
Difference between 'struct' and 'typedef struct' in C++?
Difference between 'struct' and 'typedef struct' in C++?转载 2016-06-20 15:19:12 · 639 阅读 · 0 评论