Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <sstream>
- #include <string>
- namespace patch {
- template <typename T>
- std::string to_string(T const &n) {
- std::ostringstream stream;
- stream << n;
- return stream.str();
- }
- }
- int main() {
- long n;
- std::cin >> n;
- std::cout << patch::to_string(n) << std::endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement