运行环境CentOS 6.5安装该版本后发现无法打开Emacs,使用yum -qa指令发现系统中已经安装了程序,然后在终端中输入emacs后还是不能打开,出现了下面的提示: emacs: error while loading shared libraries: libotf.so.0: canno...
分类:
其他好文 时间:
2014-07-29 21:07:12
阅读次数:
362
1.int rand7() 2.{ 3. return rand()%7+1; 4.} 5. 6.int rand10() 7.{ 8. int x=0; 9. do 10. { 11. x=(rand7()-1)*7+rand7(); 12. } 13. while(x>40); 14. retu...
分类:
其他好文 时间:
2014-07-29 20:53:23
阅读次数:
156
SSH Tunneling Explained Recently I wanted to set up a remote desktop sharing session from home pc to my laptop. While going through the set up guide I...
分类:
其他好文 时间:
2014-07-29 16:55:54
阅读次数:
386
#include?<stdio.h>
#include?<math.h>
float?fVal;
float?fDecimal;
int?iInteger;
//iInteger?=?(fVal?*?10)?/?10;
//fDecimal?=?fVal?-?iInteger
int?main()
{
????while(EOF?!=?scanf...
分类:
其他好文 时间:
2014-07-29 16:18:39
阅读次数:
386
字符串相加的时候尽量使用:join ????在while True 循环的时候,尽量使用:while 1 ????字符串处理: ????????分组 str.split(‘key‘) ????????列表翻转:list.reverse()...
分类:
编程语言 时间:
2014-07-29 16:17:09
阅读次数:
176
/*多个空格只输出一个*/
#include<stdio.h>
int?main(void)
{
????char?sucker,?spoon,?chopstick;
????sucker?=?spoon?=?chopstick?=?‘\0‘;
????while((sucker=getchar())!=EOF){
????...
分类:
其他好文 时间:
2014-07-29 16:10:09
阅读次数:
190
voidstrCpy(char*p1,char*p2){
while(((*(p1++))=(*(p2++))))){
}
}
分类:
其他好文 时间:
2014-07-29 15:40:29
阅读次数:
136
//每列选一个数相加为0的个数
# include
# include
# include
using namespace std;
int ab[4010*4010],cd[4010*4010];
int main()
{
int n,i,k,j,count,a[4010],b[4010],c[4010],d[4010];
while(~scanf("%d",&n))
{
...
分类:
其他好文 时间:
2014-07-29 15:10:48
阅读次数:
140
详解:hdu 1907 John - lihaogegehuting的专栏 - 博客频道 - CSDN.NET
两道题几乎一样
代码如下:
#include
int main()
{
int T,a[100],i,sum,ok;
while(~scanf("%d",&T))
{
sum=0;
ok=0;
...
Description
A friend of you has just bought a new computer. Until now, the most powerful computer he ever used has been a pocket calculator. Now, looking at his new computer, he is a bit disappointed...
分类:
其他好文 时间:
2014-07-29 15:07:09
阅读次数:
335