这是函数
int Random()
{
srand((unsigned)time(0));
int a[4];
for(int i = 0;i < 4;i++)
{
a[i] = 1 + rand()%Max;
printf("%d",a[i]);
}
}
这是函数调用
Random(int argc,char *argv[]);
这是错误
d:\microsoft visual studio\myprojects\猜数字游戏d\猜数字游戏.cpp(51) : error C2144: syntax error : missing ')' before type 'int'
d:\microsoft visual studio\myprojects\猜数字游戏d\猜数字游戏.cpp(51) : error C2059: syntax error : ')'
字数超限,你给个 QQ吧
追答1871247880
能不能给个面子采纳吧😄差不多一个下午啊
本回答被提问者采纳