有一个问题希望大神能指点指点
char CreateRandomOperator();int main()
{
int a, b, i;
int input,result;
int score = 0;
char op;
srand(time(NULL));
for(i = 0; i < 10; i++)
{
a = CreateRandomNumber();
b = CreateRandomNumber();
op = CreateRandomOperator();
for (i = 0;i < 3;i++)
{
printf("%d %c %d = ",a,op,b);
scanf("%d",&input);
result = Calculate (a, op, b);
if (input == result)
{
printf("Correct!\n");
score +=10;
}
else
printf("Not correct!\n");
}
}
}