今天和crk学了c语音的对拍 感觉贼亲切啊,相比b语音的:loop 简直不友好。。。
对比一下,,b的纯背的代码啊。。。
:loop
mkdt.exe
std.exe
a.exe
fc std.out a.out
if %errorlevel%==0 goto loop
pause
然后是c:
int order;
while (true)
{
system("mkdt.exe");
system("std.exe");
system("vio.exe");
if(system("fc out1.txt out2.txt")) {cin>>order;if(order) break;}
}
好多system。。好烦。。于是:
#include<bits/stdc++.h>
using namespace std;
#define run system
int main()
{
int order;
while (true)
{
run("mkdt.exe");
run("std.exe");
run("vio.exe");
if(run("fc out1.txt out2.txt")) {cin>>order;if(order) break;}
}
}
这样就很帅了。。。。。。。