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
遍历List集合中的元素的方法有两种:
第一种:利用迭代器遍历
代码1:
// 迭代器
Iterator it=list.iterator();
while(it.hasNext())
{
System.out.println(it.next());
}或者代码2:
for(Iterator it=list.iterator();it.hasNext();)
{
System.o...
分类:
其他好文 时间:
2014-06-08 15:22:50
阅读次数:
189
Given two integersnandk, return all possible
combinations ofknumbers out of 1 ...n.For example,Ifn= 4 andk= 2, a solution
is:[ [2,4], [3,4], [2,3],...
分类:
其他好文 时间:
2014-06-08 08:08:29
阅读次数:
294
文件输入输出
使用文件流对象
创建文件流对象时,我们可以提供文件名(可选)。如果提供了一个文件名,则open会自动被调用:
ifstream in(ifile); //构造一个ifstream并打开给定文件
ofstream out; //输出文件流未关联到任何文件
用fstream代替iostream&
首先这里有一个头文件和一个定义的文件要使用
...
分类:
编程语言 时间:
2014-06-08 03:10:07
阅读次数:
253
这篇文章来自iOS Tutorial Team 成员Marcelo Fabri,
他是Movile的一个iOS开发者. Check out hispersonal websiteorfollow him on Twitter.原文地址
当我们开发iOS应用时,好的性能对我们的App来说是很重要的。你...
分类:
移动开发 时间:
2014-06-08 01:28:27
阅读次数:
507
类同一个包(同一个目录),类的创建与调用class Man{ String name;
void GetMyName() { System.out.println(name); }}public class Person { public
static v...
分类:
编程语言 时间:
2014-06-07 23:40:09
阅读次数:
269
staticvoid TEACore(unsignedint in[2], unsignedint
out[2], unsignedint key[4], long rounds){unsigned int y = in[0], z =
in[1];unsigned int limit = 0, s...
分类:
移动开发 时间:
2014-06-07 22:56:46
阅读次数:
396
linux
grep命令详解http://www.cnblogs.com/ggjucheng/archive/2013/01/13/2856896.htmlgrep
(global search regular expression(RE) and print out the line,全面搜索正则...
分类:
系统相关 时间:
2014-06-07 22:50:42
阅读次数:
387
可变参数可变参数可以当成一个数组使用public void sum(int ...nums){
int sum = 0; for(int i:nums) { sum +=i; } System.out.pri...
分类:
编程语言 时间:
2014-06-07 22:42:41
阅读次数:
306
seq(from = 1, to = 1, by = ((to - from)/(length.out
- 1)), length.out = NULL, along.with = NULL,
...)举例----------Examples----------seq(0, 1, length.o....
分类:
其他好文 时间:
2014-06-07 21:47:17
阅读次数:
232