user326964
user326964

Reputation: 464

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 you?

Upvotes: 0

Views: 3244

Answers (1)

Thomas
Thomas

Reputation: 181705

Remove this semicolon.

void baklanges(list<MataIn> lista);
                                  ^

Upvotes: 4

Related Questions