Hi all this is my first topic and post and only my second day using Linux, so here goes.
I recently installed Ubuntu 10.10 and Im in the process of migrating a C++ console simulation to Ubuntu from Windows.
I have a class with an std::string member variable which is returned by a getStringMember() method. Now I need to compare this returned value for equality with the string "Buy".
When returnedString is "Buy" the two strings should be equal, which is the case in my Windows version. However in Ubuntu and using Code::Blocks with gcc the returned string has always a size that is one larger than it ought to. Ive checked that there is no trailing spaces attached.
Does Linux encode std::strings differently and if so what do i need to do for the code to perform as required?