hello friends i am using the following code to print in SDL screen
SDL_GL_RenderText( timer, font, color, &position);
sprintf(timer," Time : %d",time);
to print in SDL screen(used with opengl) , i am doing project on C++, as "sprintf" is C style function , so i can't do like this , i am trying to use" ostringstream" , but i am not sure how to use it , plz somebody post the equivalent c++ style (using ostringstream or equivalent).
Thanks