
C++
jebe7282
Fond of Computer Programming
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
VS 打印调试
总感觉 ,OutputDebugString 不太方便 ,在调试的时候要先把要打印的信息放到一个buff里面,在把在个buff打出来。写了一个函数。跟printf差不多了。(注意这个是 ASCII 版本。)void debugInfo( char* str , ...){ va_list vlist; //可变参数起始位置。 va_start(vlist原创 2012-08-12 17:15:01 · 1174 阅读 · 0 评论 -
带dos调试窗口的win32程序
#include #define CREATE_DEBUG_CONSOLE \FILE* fpDebugOut = NULL; \FILE* fpDebugIn = NULL; \FILE* fpDebugErr = NULL; \if( !AllocConsole() ) \MessageBox(NULL, _T("控制台生成失败。"), NULL, 0); \转载 2012-07-30 18:49:35 · 667 阅读 · 0 评论 -
cocos2d-x CCRandom_0_1()有BUG.
CCRandom_0_1() 他的范围是[0-1] 注意!!! :1是闭区间,所以返回的值可以是1。 可以看到CCarray randomObject 的源码。CCObject* CCArray::randomObject(){ if(data->num==0) return NULL; return data->arr[(int)(data->num*CCRAND原创 2012-10-27 11:03:50 · 5249 阅读 · 4 评论 -
vs2010中的MSBuild输出warning MSB8012问题
vs2010中的MSBuild输出warning MSB8012问题vs2010中,MSBuild与C++编译器无缝整合.无论使用vs2010生成的代码,还是转换vs2008或者是更低版本vs编译的C++代码.都会在工程编译后,都会提示一条错误:C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targ转载 2012-12-16 17:28:12 · 3507 阅读 · 0 评论 -
javascript引擎PK:V8 vs Spidermonkey
一个月前心血来潮瞎折腾了下Nodejs,用ab和JMeter进行简单地压力测试后,不得不佩服它的速度与性能(备注:测试比较了几个框架后得出的结果)。Nodejs是什么,一个基于chrome的javascript V8引擎的platform,特点是事件驱动,异步非阻塞IO模型,轻量。本文不是给Nodejs做广告的,它只是一个引子,关于Nodejs的具体信息大家自己google吧,这里就不多作说明了。转载 2013-01-02 18:11:02 · 1400 阅读 · 0 评论 -
openGL Post-Processing Effects
openGL Post-Processing Effects Tutorialby gbuzogany on 3/06/2011It was hard to find out how it works, so I thought it would be great to share that!I assume that you already know what shade转载 2014-08-27 16:18:06 · 2480 阅读 · 1 评论 -
PathUtil
#ifndef PathUtil_h__#define PathUtil_h__#include class xPath{std::string path;int slashIndex;int extIndex;public:xPath(const char * fullpath){path = fullpath;slashIndex = p原创 2014-09-29 16:31:03 · 1310 阅读 · 0 评论