码迷,mamicode.com
首页 >  
搜索关键字:for while until    ( 29426个结果
Hangman游戏源代码 --- python实现
#hangman.pyfrom PythonCard import model,dialogimport randomdef find_letters(letter,a_string): locations = [] start = 0 while a_string.find(le...
分类:编程语言   时间:2014-07-29 11:02:46    阅读次数:562
模板:二分搜索技术
代码如下: 1 template int binarySearch(const T* pt, int n, T t) 2 3 { 4 int head = 0, tail = n-1; 5 int i; 6 while (tail >= head) 7 { 8 i = (head +...
分类:其他好文   时间:2014-07-29 10:42:46    阅读次数:214
hdoj 2057
代码:#include #includeint main(){__int64 a,b,c;while(scanf("%I64X%I64X",&a,&b)!=EOF){ c=a+b; if(c<0){printf("-"); c=-c;}printf("%I64X\n",c);}return 0;}无...
分类:其他好文   时间:2014-07-29 10:36:06    阅读次数:228
CSUOJ 1217 奇数个的那个数
Description给定些数字,这些数中只有一个数出现了奇数次,找出这个数。Input每组数据第一行n表示数字个数,1 2 int main() 3 { 4 int n, x, ans; 5 while (scanf("%d", &n) != EOF) 6 { 7 ...
分类:其他好文   时间:2014-07-28 23:39:24    阅读次数:481
血泪史
记录iOS开发生涯中,因知识库不完备、知识点不清晰,导致的各种坑。 1.You cannot remove objects from array while fast-enumerating it: numeration is “safe”—the enumerator has a mutation guard so that...
分类:其他好文   时间:2014-07-28 16:55:24    阅读次数:247
140726暑期培训.txt
1、   输入多组数据的时候       while(scanf("%s",s)!=EOF)       while(gets(s)!=NULL)     用gets和scanf不一样,要注意 2、   输入字符串的时候       scanf("%s",s);                            scanf遇到空格会自动停止输入...
分类:其他好文   时间:2014-07-28 16:26:23    阅读次数:199
WebView.destroy() called while still attached 的解决办法
WebView.destroy() called while still attached 的解决办法...
分类:Web程序   时间:2014-07-28 15:58:33    阅读次数:238
倒立摆
#include "sys.h" int main() { SYS_CONFIG();    Daolibai_Init();//单摆各部分接口初始化      while(1) {           UpdateAngel();         //实时转换更新角度值              //   NOWStep(CurrentStep);    printf(...
分类:其他好文   时间:2014-07-28 15:52:53    阅读次数:180
Uva 11991 - Easy Problem from Rujia Liu?
第一份代码,TLE了#include#define MAX 100000+5int a[MAX];int main(){ int n,m,i,j,k,v; while( scanf("%d %d",&n,&m)!=EOF) { for(i=1;i#include#in...
分类:其他好文   时间:2014-07-28 15:06:53    阅读次数:241
开发过程问题A
Android问题集锦An error occurred while automatically activating bundle com.android.ide.eclipse.adt 这是Eclipse的问题,重启之后问题依旧。在坛子里找到这个办法,果然好用。命令行到eclipse路径运行:e...
分类:其他好文   时间:2014-07-28 15:02:43    阅读次数:170
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!