|
|
|
![]() |
|
Strumenti |
![]() |
#1 |
Senior Member
Iscritto dal: Oct 2003
Città: Chicago, IL
Messaggi: 504
|
C++ Domanda nubbia
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 ![]() |
![]() |
![]() |
![]() |
#2 |
Member
Iscritto dal: Sep 2001
Messaggi: 181
|
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 |
![]() |
![]() |
![]() |
Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 03:30.