Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
double val = 12345.26374859560;
std::stringstream ss; ss << std::setw(8) << std::setprecision(8) << std::right << val; 
std::string s = ss.str();

Print long space or repeated character

std::cout << std::setw(80) << " " << std::setw(4);

std::cout << std::setw(20) << setfill('=');

Check if the element is in the vector or list

...