View Full Version : C++ Domanda nubbia
zergling
05-10-2007, 17:03
Ciao a tutti,
Apro questo post perche vorrei sapere che cosa significano e che cosa fanno queste due linee di comando
cout.setf(ios::fixed);
cout.setf(ios::showpoint);
Ciao a grazie in anticipo :)
sono dei "manipolatori" e servono a formattare l'output.
Riporto:
left left-justifies the output
right right-justifies the output
showpoint displays decimal point and trailing zeros for all floating point numbers, even if the decimal places are not needed.
uppercase displays the "e" in E-notation as "E" rather than "e"
showpos displays a leading plus sign before positive values
scientific displays floating point numbers in scientific ("E") notation
fixed displays floating point numbers in normal notation - no trailing zeroes and no scientific notation
vBulletin® v3.6.4, Copyright ©2000-2025, Jelsoft Enterprises Ltd.