#include <stdio.h>
#include <stdlib.h>
#define LOCAL
int main()
{
#ifdef LOCAL
freopen("datain.txt","r",stdin);
freopen("dataout.txt","w",stdout);
#endif
int x;
while(scanf("%d",&x)==1)
{
if(x<8)
x=0;
printf("%d",x);
}
return 0;
}
在datain中写入数字 6 7
dataout中为00
这里#ifdef XXX
#endif
为c++语句
电脑程序语句,我们可以用它区隔一些与特定头文件、程序库和其他文件版本有关的代码。