cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
I am stuck please help
I am stuck please help
Oct 13, 2013 at 6:08pm UTC
jonhouston2010
(1)
deleted
Last edited on
Oct 13, 2013 at 6:17pm UTC
Oct 13, 2013 at 6:11pm UTC
mutexe
(2372)
< deleted>
Last edited on
Oct 13, 2013 at 6:13pm UTC
Oct 13, 2013 at 6:12pm UTC
LB
(13399)
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 UTC
mutexe
(2372)
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 UTC
LB
(13399)
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 UTC
mutexe
(2372)
i'm confused :)
but nothing new there lol
Topic archived. No new replies allowed.