#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);
}
C++上报错,执行不了
报错是什么?
除了i变量因为没有使用有个警告,其他的没啥问题啊,可以运行结果啊:
点赞
扫一扫分享朋友圈
二维码
分享
你确定要删除这个问题吗?