Advertisement
iskhakovt

Untitled

Oct 30th, 2014
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1. #include <iostream>
  2. #include <sstream>
  3. #include <string>
  4.  
  5. namespace patch {
  6.     template <typename T>
  7.     std::string to_string(T const &n) {
  8.         std::ostringstream stream;
  9.         stream << n;
  10.         return stream.str();
  11.     }
  12. }
  13.  
  14. int main() {
  15.     long n;
  16.     std::cin >> n;
  17.     std::cout << patch::to_string(n) << std::endl;
  18.     return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement