Advertisement
zachdyer

Integer to String in C++

Jun 30th, 2014
515
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.18 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.     int number = 12;
  9.     string sNum = to_string(number);
  10.     cout << sNum << endl;
  11.     return 0;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement