![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++
文章平均质量分 57
ifwantwill
这个作者很懒,什么都没留下…
展开
-
关于 debug能过而release编译不过的问题
ATL_MIN_CRT原创 2014-10-22 18:42:16 · 1903 阅读 · 0 评论 -
UI 相关配置 包含wtl 和mfc
1. 动态改变对话框大小 rc Appearance->Border->Resizing2. List Ctrl文字 View->report3. resource 对话框 中文 问号: http://blog.csdn.net/zhangxinrun/article/details/5797136原创 2015-12-25 14:31:33 · 393 阅读 · 0 评论 -
C/C++ 字符串的UTF-8与GBK(或GB2312)编码转换
点击打开链接C/C++:GBK(或GB2312)转UTF-8实现:string GBKToUTF8(const char* strGBK){ int len = MultiByteToWideChar(CP_ACP, 0, strGBK, -1, NULL, 0); wchar_t* wstr = new wchar_t[len+1]; m转载 2015-12-23 13:51:16 · 670 阅读 · 0 评论 -
install wtl9.1 and .lib of debug
1 download wtl9.1 need unblock the zip first then run the js, otherwise will have js error. 2.when install vs2013 or 2015, had better not inherit the parent properties.3. when compile .lib of debu原创 2015-12-11 17:16:46 · 560 阅读 · 0 评论 -
一个极好的hash map实现-字符串hash
Note: You are looking at a static copy of the former PineWiki site, used for class notes by James Aspnes from 2003 to 2012. Many mathematical formulas are broken, and there are likely to be other bu转载 2015-04-16 10:09:18 · 888 阅读 · 0 评论 -
time.h Field tv_sec could not be resolved time.h
You can manually add the time.h to the indexer, go to Preferences -> C/C++ -> Indexer and put it in front of the existing "Files to be indexed up-front" like this:time.h, cstdarg, ...Then it sho转载 2015-04-13 10:57:37 · 667 阅读 · 0 评论 -
Linux添加环境变量与GCC编译器添加INCLUDE与LIB环境变量
Linux添加环境变量与GCC编译器添加INCLUDE与LIB环境变量对所有用户有效在/etc/profile增加以下内容。只对当前用户有效在Home目录下的.bashrc或.bash_profile里增加下面的内容:(注意:等号前面不要加空格,否则可能出现 command not found)#在PATH中找到可执行文件程序的路径。export PATH =$PATH:$转载 2015-04-19 07:40:55 · 460 阅读 · 0 评论 -
Linux GCC常用命令
简介2简单编译2.1预处理2.2编译为汇编代码(Compilation)2.3汇编(Assembly)2.4连接(Linking)3多个程序文件的编译4检错5库文件连接5.1编译成可执行文件5.2链接5.3强制链接时使用静态链接库1简介GCC 的意思也只是 GNU C Compiler 而已。经过了这么多年的发展,GCC 已经不仅仅能支持 C 语转载 2015-04-22 15:49:32 · 321 阅读 · 0 评论 -
如何在eclipse cdt环境下 导入一个含makefile的工程文件
原文Tutorial: Importing an existing projectThe following tutorial takes you though the process of importing a 'legacy' application using the CDT.Step 1: You want to create a single project t原创 2015-04-16 10:12:39 · 3116 阅读 · 0 评论 -
vs 设置dll、lib库的输出路径
vs2008中,有些项目上的功能是要生产库文件给其他项目调用的,以下是一些设置库文件(x.dll和x.lib)输出路径的方法.设置x.dll 输出路径方法是在右键项目的"属性"->连接器->常规, 然后在常规属性界面中的 "输出文件" 中填入自己想要x.dll文件的输出路径. 设置x.lib 输出路径方法是在右键项目的"属性"->连接器->高级, 然后在高级属性界面中的 "转载 2015-04-03 20:29:33 · 11456 阅读 · 4 评论 -
Linux GCC常用命令
15个常用的gcc 命令选项GCC常用命令详解 Linux GCC常用命令1简介2简单编译2.1预处理2.2编译为汇编代码(Compilation)2.3汇编(Assembly)2.4连接(Linking)3多个程序文件的编译4检错5库文件连接5.1编译成可执行文件5.2链接5.3强制链接时转载 2015-03-20 16:26:00 · 358 阅读 · 0 评论 -
eclipse c++ 添加 library
点击打开链接Eclipse + CDT:pthread_create函数编译时报错:undefined reference to `pthread_create’undefined reference to `pthread_create’undefined reference to `MD5′由于pthread 库不是 Linux 系统默认的库,连接时需要使用静态库 li转载 2015-03-18 15:31:41 · 3124 阅读 · 0 评论 -
“make: *** No rule to make target `all'. Stop”的解决方案
make: *** No rule to make target `all'. Stop. 网上搜了半天的英文资料,都无法解决。最后在论坛里找到了解决方案,在这里整理了下mac和windows的解决方案,给需要的童鞋:cocos2dx eclipse 解决方式:右键项目-->properties-C/C++Build-->Builder settings转载 2015-03-18 15:45:35 · 7901 阅读 · 1 评论 -
Dungeon Game
The demons had captured the princess (P) and imprisoned her in the bottom-right corner of a dungeon. The dungeon consists of M x N rooms laid out in a 2D grid. Our valiant knight (K) was initially pos原创 2015-01-15 17:30:46 · 368 阅读 · 0 评论 -
[C/C++][经典探讨]类继承中,通过基类指针delete释放,是否会造成内存泄漏
[序言]很久不写C/C++技术贴了,算一下自己用C++也有7~8年了,虽然现在用Delphi比较多,但是对C++还是有一份热情.前段时间在CSDN看到一个帖子,让我感到非常失落, 很多人都没有引用权威文献来针对这个问题进行讨论,如果没有全文文献的引用,那么讨论将会是一个持久战.要结束这种情况,还是以书为准。如果大家都喜欢探讨技术,可以加入我的QQ:643439947一起学习[建议]转载 2014-12-10 16:58:16 · 788 阅读 · 0 评论 -
reason about thread is blocked
sometimes thread is blocked and process freeze, usually two conditions result in this, one reason is dead lock, the other is free memory twice or multi-times.原创 2017-04-29 07:10:42 · 412 阅读 · 0 评论