Advertisement
kish-dev

Untitled

Nov 3rd, 2020 (edited)
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. std::string outputString = "";
  2. std::stringstream outputStringStream(outputString);
  3.  
  4. outputStringStream << std::fixed << std::setprecision(4) << sum;
  5. std::string first;
  6. outputStringStream >> first;
  7. std::cout << first << '\n';
  8. std::cout << ch1 << " " << v1 << '\n' << ch2 << " " << v2;
  9.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement