我看我们项目创建线程从来不join,detach#include #include #include #include void fun(){ while (true) { std::cout << "hehhe" << std::endl; }}int main()...
分类:
编程语言 时间:
2014-07-10 13:57:33
阅读次数:
306
the perl version (5.14) shipped with 12.10 does not include the Switch.pm module needed while building WebKiT-GTK.How to install Perl Switch.pm modu.....
分类:
其他好文 时间:
2014-07-10 13:26:53
阅读次数:
453
.section .data.output: .ascii "%d\n\000".section .text .global mainmain: mov ip, sp stmfd sp!, {fp,ip,lr,pc} sub fp, ip, #4 sub sp, sp, #80 @m...
分类:
编程语言 时间:
2014-07-10 13:11:49
阅读次数:
950
题目:求1+2+3...+n,要求不能使用乘除法、for、while、if、else、switch、case等关键字以及条件判断语句题解分析:不能使用乘除法,也就不能使用 n(n+1)/ 2公式了不能使用for while 也就不能使用循环之类的利用构造函数求解:循环只是让相同代码重复执行n遍,我们...
分类:
其他好文 时间:
2014-07-10 11:33:22
阅读次数:
208
一个将,一个帅,在各自的活动的9个格子里,但是两个人不能面对面,站在同一条直线上下面两种简单的解法#include int main(){ unsigned char i = 81; while (i--) { if (i / 9 % 3 == i % 9 % 3) continue; pr...
分类:
其他好文 时间:
2014-07-10 00:33:52
阅读次数:
188
1、下载ffmpeg。下载网址:http://www.ffmpeg.org/download.html2、解压缩tar -zxvf ffmpeg-2.0.1.tar.gz3、配置,生成Makefile./configure --enable-shared --disable-yasm --prefi...
分类:
系统相关 时间:
2014-07-09 23:39:52
阅读次数:
307
StackOverflowhttp://stackoverflow.com/a/7059499Question:I have aUIScrollViewthat has a series of labels which are rapidly updating numbers (every .06 ...
分类:
移动开发 时间:
2014-07-07 22:02:50
阅读次数:
330
我们来看一下下面这条语句:BEGIN LOADING stu_flERRORFILES error_1, error_2;如果此时已经存在error_1或error_2表,那么将会报错,信息如下:0008 BEGIN LOADING stu_fl ERRORFILES error_1, er...
分类:
数据库 时间:
2014-06-30 14:31:51
阅读次数:
429
原始指针:通过new建立的*指针智能指针:通过智能指针关键字(unique_ptr, shared_ptr ,weak_ptr)建立的指针在现代 C++ 编程中,标准库包含智能指针,该指针用于确保程序不存在内存和资源泄漏且是异常安全的。在现代 C++ 中,原始指针仅用于范围有限的小代码块、循环或者性...
分类:
编程语言 时间:
2014-06-30 13:49:42
阅读次数:
354
原文:Multi-process Resource Loading 背景 浏览器主进程及browser process处理所有的网络通信。原因有三点: Browser process可以控制每一个renderer进程的网络访问 Browser process可以在进程间管理session状态,保持其...
分类:
其他好文 时间:
2014-06-29 18:25:47
阅读次数:
198