代码改变世界

08 2010 档案

摘要:Microsoft Visual C++ recognizes the types shown in the table below.Type NameBytesOther NamesRange of Valuesint*signed, signed intSystem dependentunsigned int*unsignedSystem dependent__int81char, signe... 阅读全文
posted @ 2010-08-16 18:07 MudooT 阅读(170) 评论(0) 推荐(0) 编辑
摘要:For related information, see Generic-Text Mappings in TCHAR.H. Generic-Text Routine Mappings Generic-text routine name SBCS (_UNICODE & MBCS not defined) _MBCS defined _UNICODE defined _cgetts _cg... 阅读全文
posted @ 2010-08-16 11:07 MudooT 阅读(878) 评论(0) 推荐(0) 编辑
摘要:你是否在一个函数中嵌套了MessageBox用来输出某些值?如果你这么做过,那么你肯定知道这有多痛苦了!那么你肯定想要开另外的一个控制台窗口来解决这个问题,那么现在就教给你这个办法。  在WinAPI中有这样的一个函数AllocConsole(),这个函数顾名思义,alloc一个console。什么?就这么简单?对啊,就这么简单。在CreateWindow之前调用这个函数就可以了!哦,你说调用后不... 阅读全文
posted @ 2010-08-12 21:19 MudooT 阅读(1368) 评论(0) 推荐(2) 编辑
摘要:大家都希望可以像操作STL容器一样的去操作数组,C++可没有提供这个东西,有时候你会选择使用vector来替代,不过这毕竟不是个好的办法,毕竟vector模拟动态数组比较稳妥,而用它去替代一个普通的数组,开销毕竟太大了。而恰好,boost::array就为你提供了这个功能。boost::array的定义如下(简化):详情参见相关文件  显而易见,其实它只是将数组简单的包装,并附加了迭代器而已,你可... 阅读全文
posted @ 2010-08-11 11:26 MudooT 阅读(5839) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示