char *fps = NULL; int x; stringstream ss; ss<<x; fps = (char *)ss.str( ).c_str( ); cout<<"FPS: "<<fps<<endl;