break:退出循环体
continue:结束本次循环,进入下一次循环。while特殊用法1:
while:
do
done
上述为while的死循环。while特殊用法2:
whilereadLINE
do
done</path/to/FILE
作用:通过while读取FILE文件中的每一行,并将其保存在变量LINE中。函数:function语法格式:..
分类:
其他好文 时间:
2014-07-26 03:25:37
阅读次数:
206
#include
long fun(long num)
{
long k=1;
do
{
k*=num%10;
num/=10;
}
while(num>0);
return k;
}
main()
{
long n;
printf("please enter a number:");
scanf("%ld",&n);
printf("\n%ld\n",fun(n));...
分类:
其他好文 时间:
2014-07-26 02:06:06
阅读次数:
247
Couple doubiTime Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusPracticeHDU 4861DescriptionDouBiXp has a girlfriend named Do...
分类:
其他好文 时间:
2014-07-26 01:25:06
阅读次数:
281
链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=453Time Limit:2 Seconds Memory Limit:65536 KBThere are a lot of trees in an area. A peas...
分类:
其他好文 时间:
2014-07-26 00:23:16
阅读次数:
351
Swift采用类同c语言的流程控制语句,if, for, for-in, while, do-while , switch, break, continue .Swift语言的Switch语句自动添加了break效果,这样你可以不用没个case后面再写break.同c语言不同,swift语言的if ...
分类:
其他好文 时间:
2014-07-26 00:04:56
阅读次数:
365
1. 像函数一样使用的宏 //这个宏,用来被其他宏使用,构造一个正确有效的表达式。这个适合于一些离散语句的组合,不适合函数的重新命名 #define st(x) do { x } while (__LINE__ == -1) 例如:#define aps_GroupsRemaingCapacity(...
分类:
其他好文 时间:
2014-07-26 00:02:06
阅读次数:
505
As a graduate, it's a shame that i do not have my technical blog. Actually, the thought of having my own blog last for long and i even wrote my person...
分类:
其他好文 时间:
2014-07-25 19:12:32
阅读次数:
360
微软近期Open的职位:SDE2 (Windows driver)Job title: Software Development Engineer 2Location: Shanghai, China Do you want to join Microsoft and work on the lat...
1、How Do I change extension of php file RewriteEngine?On
RewriteCond?%{REQUEST_FILENAME}?!-f
RewriteRule?^(.*)\.html$?$1.php?[L]...
分类:
其他好文 时间:
2014-07-25 11:39:41
阅读次数:
255
自动生成DO,手写DAO:Myeclipse添加Hibernate支持:注意别勾abstract生成DO:进入MyEclipse的Database Explorer右键要操作的表(注意一定要有主键)点击Hibernate Reverse,其中Id选择native。手写DAO:Configuratio...
分类:
系统相关 时间:
2014-07-25 03:36:14
阅读次数:
305