我已经阅读了其他帖子,这些帖子得到了“从整数不进行强制转换”错误,但我对它的确切含义感到困惑。如果我不强制转换(强制转换的意思是说)),是不是说函数默认gets
使 int 变量成为指针?input
gets ((int) input
int directions()
{
int input;
printf("Type '1', '2', etc to see a problem or type '(add an 'all' option to see a list of all the problems)\n");
gets( input);
switch ( input) {
case 1: euler1();
case 2: euler2();
}
return input;
}
int main()
{
printf("Welcome to Project Euler's Problems in C!\n");
directions();
return 0;
}