
C++
文章平均质量分 59
kudoo
真实、诚信、责任、爱心
展开
-
first-chance exception
The first-chance exception can be ignored because it is safely handled by the operating system. INFO: First and Second Chance Exception Handling (Q105675)Structured exception handling (SEH) takes a l原创 2006-07-03 22:33:00 · 2163 阅读 · 0 评论 -
VC中使用STL出现的警告.
当在使用STL时,VC有时会提出类似以下的警告:Compiling...test.cppC:/Windows/Desktop/test/test.cpp(13) : warning C4786: std::reverse_iterator,std::allocator > const *,std::basic_string,std::allocator >,std::basic_string::原创 2006-07-12 11:19:00 · 1257 阅读 · 0 评论 -
VC常用数据类型使用转换详解
http://blog.youkuaiyun.com/dyc13/archive/2006/09/01/1155100.aspx刚接触VC编程的朋友往往对许多数据类型的转换感到迷惑不解,本文将介绍一些常用数据类型的使用。我们先定义一些常见类型变量借以说明int i = 100;long l = 2001;float f=300.2;double d=12345.119;char username[]="程原创 2007-05-23 22:36:00 · 698 阅读 · 0 评论 -
__cdecl __stdcall
1.如果函数func是__cdecl(默认调用方式),调用时情况如下 int main() ...{ //参数从右到左压栈 push 4 push 3 push 2 push 1 call func add esp 0x10 //调用者恢复堆栈指针esp,4个参数的大小是0x10(4x4) }原创 2008-03-21 10:16:00 · 4816 阅读 · 1 评论 -
Singleton
今天发现singleton的设计模式还有多种不同的实现方法,以前一直这样使用:static Singleton *GetInstance()...{ if (NULL == instance) ...{ instance = new Singleton(); } return instance;} 这样使用不好之处就是得找个地方原创 2008-03-28 11:13:00 · 622 阅读 · 0 评论 -
格式化参数
#include #include #include void error (lua_State *L, const char *fmt, ...) { va_list argp; va_start(argp, fmt); vfprintf(stderr, argp); va_end(argp);原创 2008-07-17 11:19:00 · 764 阅读 · 0 评论