这个程序刚开始保以执行,我想把i<=5改成i<5就出错了,改回去也不能执行了,这是为什么?
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
main()
{
int t,i,a,b;
time(&t);
srand(t);
while(1)
{
system("cls");
for(i=1;i<=5;i++)
{
a=rand()%100;
b=rand()%100;
printf("a=%d\nb=%d\n",a,b);
printf("a+b=%d\na-b=%d\n\n",a+b,a-b);
}
system("pause");
}
}
--------------------Configuration: 3 - Win32 Debug--------------------
Linking...
LINK : fatal error LNK1168: cannot open Debug/3.exe for writing
执行 link.exe 时出错.
3.exe - 1 error(s), 0 warning(s)