设为首页 加入收藏

TOP

define true false
2014-11-24 00:33:08 来源: 作者: 【 】 浏览:24
Tags:define true false
1 #include
2
3 #define TRUE 1
4 #define FALSE 0
5
6 int main()
7 {
8 int againt=TRUE,temp;
9 printf("\nIt will stop,when you intput a num small than 50!\n");
10
11 while(againt)
12 {
13 printf("please input a num:");
14 scanf("%d",&temp);
15
16 if(temp<50)
17 {
18 againt=FALSE;
19 }
20 else
21 {
22 againt=TRUE;
23 }
24 }
25 return 0;
26 }



摘自 zhengmian
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇register定义变量访问与更改更快 下一篇C/C++ on Liunx platform第二篇:..

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: