define true false
来源:岁月联盟
时间:2012-05-07
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