I am stuck please help

Oct 13, 2013 at 6:08pm
deleted
Last edited on Oct 13, 2013 at 6:17pm
Oct 13, 2013 at 6:11pm
< deleted>
Last edited on Oct 13, 2013 at 6:13pm
Oct 13, 2013 at 6:12pm
jonhouston2010 wrote:
I am having trouble converting my int into std
I don't know what you mean by this, could you elaborate? The program looks fine at a glance, what problem are you having with it?
Oct 13, 2013 at 6:17pm


if you mean int to std::string, you could use something like:

1
2
3
string str = "123";
int myInt;
istringstream ( str ) >> myInt;


you need to include <sstream>, but I see you've already done that.
Oct 13, 2013 at 6:18pm
OP was apparently deleted as well as a response by mutexe that I'd not seen. Oh well, guess we'll never know.
Oct 13, 2013 at 6:22pm
i'm confused :)
but nothing new there lol
Topic archived. No new replies allowed.