   [SDL] Printing mouse coordinates produces garbage
  Hi,I'm trying to print the mouse coordinates to the screen, but I only get some random characters printed.Here is the code:case SDL_MOUSEMOTION:...int mouseX = 0, mouseY = 0;mouseX = event.motion.x;mouseY = event.motion.y;std::string buffer = "Mouse: ";buffer += mouseX;buffer += ", ";buffer += mouseY;m_pGuiManager->getWidget("mousecoords2")->setCaption(buffer);...And my rendering code:m_pLabel = TTF_RenderText_Blended(m_pFont, m_strCaption.c_str(), m_color);if(!m_pLabel ) {return;}SDL_Rect offset;offset.x = m_nX;offset.y = m_nY;offset.w = m_nX + m_nWidth;offset.h = m_nY + m_nHeight;SDL_BlitSurface(m_pLabel , NULL, app->m_pScreen, &offset); I have no idea on what's going wrong here. Maybe someone here has a little better understanding about SDL than I've.Regards,zEeLi   
  buffer += mouseX doesn't do what you think it does. It converts the value of the int into a single char value and adds that to the string. Consider using std::stringstream or boost::lexical_cast to build up your string to output. Also, turn up the warning level on your compiler; you should have gotten warnings related to the int to char conversion.   ;  Thanks! I got it working using stringstreams.Regards,zEeLi   