I am new to C++ and am wondering if there is a more elegant way to print out the following:
Celsius Kelvin Fahrenheit Reaumur
-------------------------------------
I guess you could just do
cout << "Celsius Kelvin Fahrenheit Reaumur" << endl << "-------------------------------------";
But it doesn't look good. In Ada you could do "Width"
. Is there a similiar operator in cpp? And can you not just do setfill('-')
and the amount of '-' you want to print out?
Any help is greatly appreciated