码迷,mamicode.com
首页 >  
搜索关键字:for while until    ( 29426个结果
CentOS6.5安装后无法启动Emacs问题的解决
运行环境CentOS 6.5安装该版本后发现无法打开Emacs,使用yum -qa指令发现系统中已经安装了程序,然后在终端中输入emacs后还是不能打开,出现了下面的提示: emacs: error while loading shared libraries: libotf.so.0: canno...
分类:其他好文   时间:2014-07-29 21:07:12    阅读次数:362
已知有个rand7()的函数,返回1到7随机自然数,让利用这个rand7()构造rand10() 随机1~10
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
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
七日Python之路--第八天(一些琐碎)
字符串相加的时候尽量使用:join ????在while True 循环的时候,尽量使用:while 1 ????字符串处理: ????????分组 str.split(‘key‘) ????????列表翻转:list.reverse()...
分类:编程语言   时间:2014-07-29 16:17:09    阅读次数:176
1-9.c
/*多个空格只输出一个*/ #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
自制函数strcpy
voidstrCpy(char*p1,char*p2){ while(((*(p1++))=(*(p2++))))){ } }
分类:其他好文   时间:2014-07-29 15:40:29    阅读次数:136
poj 2785 4 Values whose Sum is 0 (简单二分)
//每列选一个数相加为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 2509 Be the Winner
详解:hdu 1907 John - lihaogegehuting的专栏 - 博客频道 - CSDN.NET 两道题几乎一样 代码如下: #include int main() { int T,a[100],i,sum,ok; while(~scanf("%d",&T)) { sum=0; ok=0; ...
分类:Windows程序   时间:2014-07-29 15:08:58    阅读次数:315
POJ 1102 LC-Display 模拟
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!