开发者

Error: Declaration terminated incorrectly

I get the error in this part of the code:

void baklanges(list<MataIn> lista);
{
int n = text.length();
for (int i = 0; i < n/2; i++) {
   char temp = text.at(i);
   text.at(i) = text.at(n-1-i);
   text.at(n-1-i)= temp;
}
cout<<"Texten baklanges:\n"<<text<<endl;
}

I don't see any problem in the code,does any of yo开发者_高级运维u?


Remove this semicolon.

void baklanges(list<MataIn> lista);
                                  ^
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜