//convert string type value to double type
value string s = "23"; double d; istringstream
is(s); is>>d; cout<<d<<endl; //输出23 //convert double type
.....
分类:
编程语言 时间:
2014-06-09 22:15:55
阅读次数:
220
yum install "@Chinese
Support"System->Preferences->Input Method,勾选"Enable input method
feature",Input Method选择"Use IBus",Log Out重新登录后"ctrl+空格"即可切换输入法
分类:
其他好文 时间:
2014-06-09 00:54:37
阅读次数:
182
There is an need of kill one port is already in
use. The command is : lsof -i:8000 There will be a list of: command pid user fd
type device size...
分类:
其他好文 时间:
2014-06-08 21:47:33
阅读次数:
366
??run{allocate channel d1 type disk;allocate
channel d2 type disk;allocate channel d3 type disk;allocate channel d4 type
disk;allocate channel d5 type...
分类:
其他好文 时间:
2014-06-08 21:26:18
阅读次数:
351
主席树 又称函数式线段树,又称可持久化线段树……缺点是内存有点儿大…… 1 type
node1=record 2 l,r,sum:longint; 3 end; 4 node2=record 5 x,idx:longint; 6 end; 7
va...
分类:
其他好文 时间:
2014-06-08 20:44:49
阅读次数:
256
1.ELF文件格式概貌readelf -h
查看elf文件头部信息可以看到Type值有三种:REL,EXEC,DYN。REL文件是只被编译没有被链接过的文件,其格式属于左边一种,elf
header+section1,2,3...+section header table,每个section对应.....
分类:
其他好文 时间:
2014-06-08 20:34:25
阅读次数:
263
原始form表单值获取方式(手动):$.ajax({
type: "POST",
url: "ajax.php",
data: "Name=摘取天上星&position=IT技术",
success: function(msg){alert(msg);},
error: function(error){alert(error);}
});JQ serialize()...
分类:
Web程序 时间:
2014-06-08 16:19:01
阅读次数:
280
摘自http://www.west263.com/info/html/wangyezhizuo/css/20080225/42390.html
当我们制作页面的时候,总会在它的源码头部看到一串声明,比如最常见的
如果我们把这些代码去掉,会发现页面可能会有比较明显的变化,因为这样造成了有些样式的表现不一样。
这些代码我们称做DOCTYPE声明。DOCTYPE是document type(文...
分类:
Web程序 时间:
2014-06-08 10:25:52
阅读次数:
302
另一个例子,通过下面的log看,CPU在访问reserved的地址0x53611EFD,非法访问时该地址会在L1D内存控制器的L1DMPFSR寄存器中记录。
** FATAL EXCEPTION Nid:0x1262 TYPE:EXTERNAL:[0xEA07A]CpuL1DMemoryProtectionFault Violated memory address(L1DMPFAR):0x536...
分类:
其他好文 时间:
2014-06-08 04:13:06
阅读次数:
292
因为工作需要,再加上个人爱好,经过分析整理出短彩应用中从发送至收到附件为音频的彩信的下载,预览,播放整个流程,给大家一起分享。
第一步,添加附件:ComposeMessageActivity类下,addAttachement();
private void addAttachment(int type, boolean replace) {
// Calculate th...
分类:
移动开发 时间:
2014-06-08 03:54:59
阅读次数:
244