这个程序变量还需要 i 吗?
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
main()
{
int t,i,a,b;
time(&t);
srand(t);
a=rand()%100;
b=rand()%100;
printf("a=%d\nb=%d\n",a,b);
printf("a+b=%d",a+b);
}
没有用到就不需要撒