error C2239: unexpected token '{' following declaration of 'List'
答案:2 悬赏:30
解决时间 2021-02-23 20:31
- 提问者网友:故事与他
- 2021-02-23 03:05
error C2239: unexpected token '{' following declaration of 'List'
最佳答案
- 二级知识专家网友:最后战士
- 2021-02-23 03:50
List后面的{导致语法错误,这种错误说明你代码语法不对,无代码无真相
全部回答
- 1楼网友:许你一世温柔
- 2021-02-23 05:08
long func(long a,long b) //返回最大公约数
{
if (a%b!=0)
return func(b,a%b);
else
return b;
}
int main() //这里丢了对括号
{
ifstream input("son.in");
ofstream output("son.out");
input>>n;
{
if (a%b!=0)
return func(b,a%b);
else
return b;
}
int main() //这里丢了对括号
{
ifstream input("son.in");
ofstream output("son.out");
input>>n;
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯