上一页 1 ··· 5 6 7 8 9 10 11 12 下一页
摘要: //test.c #include #include //字符串化运算符#define EXPAND(name) ({ \ printf("%s\n", #name); })//二元运算符 ## 将左和右操作数结合成一个记号#define test(name, index) ( { \ int i, len = sizeof(name ## index) / sizeof(int); \ for (i = 0; i < len; i++) \ { \ printf("%d\n", name ## index[i]); \ }}) ... 阅读全文
posted @ 2014-03-22 01:44 sndnvaps 阅读(801) 评论(0) 推荐(0)
摘要: 在使用Qt 4.7.3, Qt 4.7.2 ,Qt 4.7.1(mingw 4.6.2 )的时候都会有一个问题无法编译通过,即用Qt Creator 编译的时候会发生一个错误 "Cannot find entry symbol nable-stdcll-fixup; defaulting to 00401000"错误发生的位置是:Makefile.Debug , Makefile.Release 错误分析:请打开Makefile.Debug,定位到 LFLAGS = 原始定义如下: -enable-stdcall-fixup -Wl,-enable-auto-import 阅读全文
posted @ 2014-03-05 12:18 sndnvaps 阅读(803) 评论(0) 推荐(0)
摘要: //如果界面上的中文依然显示乱码,那么请将main.cpp文件中的:QTextCodec::setCodecForTr(QTextCodec::codecForLocale());//更改为:QTextCodec::setCodecForTr(QTextCodec::codecForName(“GB2312″));QString(trUtf8("↑"));QString(trUtf8("中国")); 阅读全文
posted @ 2014-02-26 20:43 sndnvaps 阅读(1287) 评论(0) 推荐(0)
摘要: C++, map , iterator ,pair(), make_pair() 阅读全文
posted @ 2013-12-22 20:36 sndnvaps 阅读(460) 评论(0) 推荐(0)
摘要: 计算机程序运行时间 阅读全文
posted @ 2013-12-20 18:43 sndnvaps 阅读(364) 评论(0) 推荐(0)
摘要: 用C++实现一个简单的HashTable 阅读全文
posted @ 2013-12-20 16:33 sndnvaps 阅读(2431) 评论(0) 推荐(0)
摘要: 编译出现这个错误的原因非常简单编译的标准不相同。如果用stdc90,这个就可以直接编译通过了。下面是代码例子:......char cmd[256] = NULL;或者 :char cmd[256] = '\0';...............如果用C写这个代码,编译是没有问题的。但是用C++写的,就会出现问题了。编译会提示:In member function '.....::.....' :..........: error: array must be initialized with a brace-enclosed initialized 解决方案有如 阅读全文
posted @ 2013-12-13 13:16 sndnvaps 阅读(26993) 评论(0) 推荐(0)
摘要: 转载,UBIFS, Android, 阅读全文
posted @ 2013-11-20 13:49 sndnvaps 阅读(1055) 评论(1) 推荐(0)
摘要: C++编程规范 阅读全文
posted @ 2013-11-03 11:29 sndnvaps 阅读(223) 评论(0) 推荐(0)
摘要: 下面提供的commit是为了让nexus 4g的内核支持ubunt touch的一些功能.链接地址如下:"UBUNTU: SAUCE: apparmor: 3.0 backport of apparmor3"http://o.cs.uvic.ca:20810/perl/cid.pl?cid=1106ae9516230849ecdb5dd56ac78a0c4b511697 阅读全文
posted @ 2013-10-25 19:44 sndnvaps 阅读(248) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 下一页