Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <sstream>
- int main(){
- float n = 3.141526f;
- std::string s;
- std::stringstream stream;
- stream << n;
- stream >> s;
- std::cout << s;
- std::cin.get();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment