●boost锁的概述boost库中提供了mutex类与lock类,通过组合可以轻易的构建读写锁与互斥锁。▲mutex对象类mutex类主要有两种:boost::mutex,boost::shared_mutex,其中mutex有lock和unlock方法,shared_mutex除了提供lock和u...
分类:
其他好文 时间:
2014-06-15 23:47:04
阅读次数:
312
While reading /XXX/XXX/XXX/img1.png pngcrush caught libpng error: Not a PNG filCould not find file: /Users/XXX/Library/Developer/Xcode/DerivedData/C.....
分类:
其他好文 时间:
2014-06-15 22:56:42
阅读次数:
351
http://mikedormitorio.azurewebsites.net/BlogPost/jqgrid-series-part-1-loading-data-to-a-jqgrid-on-an-asp-net-mvc-applicationhttp://stackoverflow.com/q...
分类:
Web程序 时间:
2014-06-15 20:35:39
阅读次数:
244
单片机的编程中经常用到while(1)死循环来进行轮寻操作,但分析Linux内核源代码时却经常见到for(;;)作为死循环的条件。
两者区别:
区别一
for(;;)死循环里的两个;;代表两个空语句,编译器一般会优化掉它们,直接进入循环体。
while(1)死循环里的1被看成表达式,每循环一次都要判断常量1是不是等于零。
区别二
for.c源码:
#include
int mai...
分类:
编程语言 时间:
2014-06-15 19:11:23
阅读次数:
305
除了SQLite数据库外,SharedPreferences也是一种轻型的数据存储方式,它的本质是基于XML文件存储key-value键值对数据,通常用来存储一些简单的配置信息。其存储位置在/data/data//shared_prefs目录下。SharedPreferences对象本身只能获取数据而不支持存储和修改,存储修改是通过Editor对象实现。实现SharedPreferences存储的...
分类:
移动开发 时间:
2014-06-15 18:34:02
阅读次数:
250
#include
void printSpace(int i){
for(int k = 0; k < i; ++k)
putchar(' ');
}
void printStart(int k){
for(int i = 0; i < k; ++i)
putchar('*');
}
int main(){
int n;
while(scanf("%d", &n) == 1...
分类:
其他好文 时间:
2014-06-15 18:05:23
阅读次数:
222
continuecontinue 只能用于while循环、do/while循环、for循环以及for/in循环中,其他地方都会引起错误。1 for(var i=0;i<5;i++){2 if(i == 3) continue;3 console.log(i); //0,1,2,...
分类:
编程语言 时间:
2014-06-15 06:43:13
阅读次数:
239
#include #include #include #include using namespace std;int n,m;int bin[50001];int findx(int x){ int r=x; while(r!=bin[r]) r=bin[r]; int j=x,k; while(...
分类:
其他好文 时间:
2014-06-15 00:17:10
阅读次数:
323
Hathaway As Catwoman wear her Giuseppe Zanotti for sale required a while removed from her hectic agenda to mingle together with her fellow nominees in...
分类:
其他好文 时间:
2014-06-14 20:07:50
阅读次数:
213
原因:在macbook pro retina上安装win7双系统错误:在使用Bootcamp分区的时候出现错误:An error occurred while partitioning the disk解决方法: - 打开Disk Utility (磁盘工具) - 在左侧选择当前使用的硬盘,然后.....
分类:
其他好文 时间:
2014-06-14 20:05:48
阅读次数:
456