和老师那个程序基本一样,但是怎么也运行不了,求救!!!!!!!
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
main()
{
int a,b,t;
time(&t);
srand(t);
while(1)
{
system("cls");
a=rand()%100;
b=rand()+100;
printf("a=%d\nb=%d\na+b=%d",a,b,a+b);
system("pause");
}
}