当前位置:编程学习 > C/C++ >>

define true false

1 #include <stdio.h>
 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
补充:软件开发 , C语言 ,
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,