My name is Charles Humble and I am here at QCon New York 2014 with Ian Robinson. Ian, can you introduce yourself to the InfoQ community?Hello, I am Ia...
分类:
数据库 时间:
2015-02-28 00:12:03
阅读次数:
197
configure.ac:64: error: possibly undefined macro: AM_ICONV If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf docu...
分类:
其他好文 时间:
2015-02-27 01:29:58
阅读次数:
150
安卓系统下由于#号是属于内定字符,需要转义为%23第一种方式:adb shell service call phone 1 s16 "%23"第二种方式:adb shell am start -a android.intent.action.DIAL -d tel:%23如果拨号则为:adb she...
分类:
移动开发 时间:
2015-02-26 18:03:11
阅读次数:
618
定义类的方法class 类名{ 属性; 方法;}属性也叫成员变量,主要用于描述累的状态方法也叫成员方法,主要用于描述类的行为class Person{ int age; void show() { System.out.println(“oh,my god ! I am”+age...
分类:
编程语言 时间:
2015-02-25 18:33:26
阅读次数:
191
1.import osprint 'Process (%s) start...' % os.getpid()pid = os.fork() #生成子进程,在父进程和子进程中运行之后的程序 ,子进程永远返回0,而父进程返回子进程的IDif pid==0: print 'I am child ...
分类:
系统相关 时间:
2015-02-25 17:03:13
阅读次数:
143
python正则表达式-findall
#coding=utf-8
import re
'''
# 获取匹配的的内容
'''
p = re.compile(r'\d+')
print '找出所有的数字',p.findall('one1two2three3four4')
'''
# 获取匹配的的内容-比较复杂的例子
'''
unicodePage ='i am a boyi am...
分类:
编程语言 时间:
2015-02-23 22:30:29
阅读次数:
273
当我们要使用android的系统服务时,一般都是使用Context.getSystemService方法。例如我们要获取AudioManager,我们可以: AudioManager?am?=?(AudioManager)?getSystemService(Context.AUDIO_SERVIC...
分类:
其他好文 时间:
2015-02-23 14:21:28
阅读次数:
185
Description描述Find coordinates of any triangle ABC if it is know that |AB|=c, |AC|=b, |AM|=m, AM is a median of triangle.找到任何一个三角形ABC,使得它满足|AB| = c,|AC...
分类:
其他好文 时间:
2015-02-22 13:20:04
阅读次数:
140
定义一个字符数组:
char cArray[] = {'I','a','m','a','m','a','n','\0'};
用'\0'表示字符数组结束标志。它不占字符长度大小,但是占内存大小。
Result : sizeof(cArray) = 8 ; strlen(cArray) = 7 .
字符串定义方法:
(1)
char cString[] = "I am a Man !";...
分类:
编程语言 时间:
2015-02-20 11:57:46
阅读次数:
140
描述:编写程序,读入一行英文(只包含字母和空格,单词间以单个空格分隔),将所有单词的顺序倒排并输出,依然以单个空格分隔。输入输入为一个字符串(字符串长度至多为100)。输出输出为按要求排续后的字符串。样例输入I am a student样例输出student a am I思路:首先把字符串先反转,从...
分类:
其他好文 时间:
2015-02-18 19:52:31
阅读次数:
499