   stringstream MSVC vs Xcode
  I have a string "XXXX 99XXXXXX"string s;int i = 0;ss >> s >> i;Under MSVC will produce s = "XXXX" and i = 99in xcode it seems to fail extracting the 99; s = "XXXX" and i = 0;Am I missing something to make it work under both? I tried setting the flags on the stringstream to ios::dec and ios::skipws since that is what msvc seems to have set as flags but it did'nt work.   
  There seems to be problems with the latest C++ compiler that Xcode is using.Project->Edit Project Settings->Build->C/C++ Compiler Version->Change from GCC 4.2 (Default) to GCC 4.0... fixed it for me, also had problems with the std::string library elsewhere, memory allocation bugs etc...I'm new to GCC, Xcode, Mac programming in general, I come from a MSVC Microsoft environment... hope that helped ;)Edit:    if it didn't help, please post the whole code that you're having trouble with so others can check it.[Edited by - razamataz on April 9, 2010 1:20:52 AM]