Hi I was wondering how do I put an integer inside a string
For example
If anyone can help me thanks :-)Code:<string> <iostream.h> using namespace std; main() { int x=1; string bob; bob=x; ////////////I'm not sure how to convert it. i tried using /////////// sstream but i can't use <sstream.h> ////////// My compiler bugs out, I am using visual ////////// c+ 6.0. it reports 60 something errors in the ///////// header file. Is there another way to have it so ////////// when cout<<bob; ///// it will read 1? and if i have to use char how //////// would i do that? thanks }



LinkBack URL
About LinkBacks



