Is there a way to convert from an integer to a string?
CodeBoy101
-2
Junior Poster in Training
Recommended Answers
Jump to PostIs there a way to convert from an integer to a string?
Yes, one way of doing it is ...
#include <iostream> #include <sstream> #include <string> using namespace std; int main() { int x = 123; stringstream ss; string s; ss << x; ss >> s; cout …
All 2 Replies
mitrmkar
1,056
Posting Virtuoso
CodeBoy101
commented:
Perfect!!!
+1
CodeBoy101
-2
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.