码迷,mamicode.com
首页 >  
搜索关键字:while break continue    ( 40024个结果
南阳理工----奋斗的小蜗牛
#include#includeint main(){ int t,h; int n; double n1; scanf("%d",&t); while(t--) { n=0; scanf("%d",&h); if(h10) { n1=(h-10...
分类:其他好文   时间:2014-07-29 12:15:06    阅读次数:238
n 个数 最大数 最小数 INF的使用
输入nn 个数 最大数 最小数Input51 5 2 3 6Output1 6#include#includeusing namespace std;int main(){ int n, i, a[1000]; while(cin>>n) { for(i=0; i>...
分类:其他好文   时间:2014-07-29 11:51:36    阅读次数:287
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
MySql开启事务
1 CREATE PROCEDURE test_sp1( ) 2 BEGIN 3 DECLARE t_error INTEGER DEFAULT 0; 4 DECLARE CONTINUE HANDLER FOR SQLEXCEPTION SET t_er...
分类:数据库   时间:2014-07-29 10:26:48    阅读次数:456
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!