单说ifelse,行5的if语句已经在行13的else处结束了,行15的else无效且错误,提示:对等的ifelse语句要处于通一级大括号内,如
bool a = true;
if (a) 1
{
if (a) 2
{
}
else 2
{
if(a) 3
{
}
else if (a) 3
{
if (a) { } 4
else { } 4
}
else 3
{
}
}
}
else ---1
{ }
if(a==b==c),错误写法啊