码迷,mamicode.com
首页 >  
搜索关键字:while break continue    ( 40024个结果
Failed to Attach to Process ID Xcode 解决办法
方法1.go to the Product menu and find the Edit Scheme menu there.While in Edit Scheme window, select the "Run" option on the left hand side of the scree...
分类:其他好文   时间:2014-06-12 21:03:42    阅读次数:317
IOS学习笔记---C语言第三天
循环结构 : while循环 do...while循环(几乎不用) for循环(使用最多)特点:在给定的条件成立时,反复执行某程序段,直到条件不成立为止。给定的条件为循环条件,反复执行的程序段位循环体。一、while循环while(条件表达式){ 循环语句;}#import int mai...
分类:移动开发   时间:2014-06-10 21:36:59    阅读次数:346
【leetcode】sort list
问题:对链表进行排序,要求时间复杂度为NlogN。归并排序。 inline ListNode* getMidle(ListNode *head){ if(NULL == head || NULL == head->next) return head; ListNode *pslow = head; ListNode *pfast = head; while (pfast->next...
分类:其他好文   时间:2014-06-10 17:35:56    阅读次数:282
Hdu1089
1 #include 2 int main()3 {4 int a,b;5 while(scanf("%d %d",&a,&b)!=EOF){6 printf("%d\n",(a+b));7 } 8 return 0;9 }说明:记得判断 !=EOF ...
分类:其他好文   时间:2014-06-10 12:00:04    阅读次数:265
Hdu1093
1 #include 2 int main() 3 { 4 int T,n; 5 int a,sum=0; 6 while(scanf("%d",&T)!=EOF){ 7 while(scanf("%d",&n)!=EOF){ 8 ...
分类:其他好文   时间:2014-06-10 11:56:12    阅读次数:223
Hdu1092
1 #include 2 int main() 3 { 4 int n,sum=0; 5 while(scanf("%d",&n)){ 6 if(n==0) {return 0;} 7 else{ 8 int i,a; 9 ...
分类:其他好文   时间:2014-06-10 11:52:19    阅读次数:312
C/C++ 笔试、面试题目大汇总
转自C/C++ 笔试、面试题目大汇总这些东西有点烦,有点无聊。如果要去C++面试就看看吧。几年前网上搜索的。刚才看到,就整理一下,里面有些被我改了,感觉之前说的不对或不完善。1.求下面函数的返回值( 微软)intfunc(x){intcountx=0;while(x){countx++;x=x&(x...
分类:编程语言   时间:2014-06-10 11:39:22    阅读次数:344
Hdu1094
1 #include 2 int main() 3 { 4 int i,n,a,sum=0; 5 while(scanf("%d",&n)!=EOF){ 6 for(i=0;i<n;i++){ 7 scanf("%d",&a); 8 ...
分类:其他好文   时间:2014-06-10 11:30:59    阅读次数:200
Hdu1095
1 #include 2 int main()3 {4 int a,b;5 while(scanf("%d %d",&a,&b)!=EOF){6 printf("%d\n\n",a+b);7 }8 return 0;9 }
分类:其他好文   时间:2014-06-10 11:24:26    阅读次数:253
Hdu1096
1 #include 2 int main() 3 { 4 int T,n; 5 int a,sum=0; 6 while(scanf("%d",&T)!=EOF){ 7 while(scanf("%d",&n)!=EOF){ 8 ...
分类:其他好文   时间:2014-06-10 11:22:38    阅读次数:201
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!