views:

96

answers:

1

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?

+2  A: 

Remove this semicolon.

void baklanges(list<MataIn> lista);
                                  ^
Thomas
thnx man,I always miss these details after working for so long on a code :P