Advertisement
spacechase0

String Conversion

Jun 13th, 2011
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.08 KB | None | 0 0
  1. float f;
  2. std::string str = "3.14";
  3.  
  4. std::stringstream ss;
  5. ss << str;
  6. ss >> f;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement