Vorrei sapere il II parametro che devo passare alla funzione sprintf() per formattare un intero di tre cifre, cioè se l'intero è 4 mi visualizzi 004.
Grazie.
Vorrei sapere il II parametro che devo passare alla funzione sprintf() per formattare un intero di tre cifre, cioè se l'intero è 4 mi visualizzi 004.
Grazie.
Windows Xp
[Java]
[PHP]Notepad++
[Fortran90-77] elf90 g77
[C++ /WinAPI] DevC++ VisualC++
Trovato: "%03i"
Dove trovo una lista di tutti questi parametri?
Windows Xp
[Java]
[PHP]Notepad++
[Fortran90-77] elf90 g77
[C++ /WinAPI] DevC++ VisualC++
potevi scrivere anche: "%.3d"
http://www.cplusplus.com/ref/cstdio/sprintf.html
...Terrible warlords, good warlords, and an english song
Grassie.....
Windows Xp
[Java]
[PHP]Notepad++
[Fortran90-77] elf90 g77
[C++ /WinAPI] DevC++ VisualC++
su linux fai "man 3 printf" e sono elencati tutti i parametri.
Drug misuse is not a disease, it is a decision, like the decision to step out in front of a moving car. [...] In this particular life-style the motto is "be happy now because tomorrow you are dying", but the dying begins almost at once, and the happiness is a memory.