Click here to Skip to main content
15,568,965 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: The messages used by mice and joysticks Pin
Richard MacCutchan30-Jul-16 22:35
mveRichard MacCutchan30-Jul-16 22:35 
QuestionMice with 3 buttons Pin
Anthony Appleyard30-Jul-16 11:22
Anthony Appleyard30-Jul-16 11:22 
AnswerRe: Mice with 3 buttons Pin
Richard MacCutchan30-Jul-16 22:33
mveRichard MacCutchan30-Jul-16 22:33 
AnswerRe: Mice with 3 buttons Pin
Jochen Arndt30-Jul-16 23:18
professionalJochen Arndt30-Jul-16 23:18 
Questionplease help me with this problem Pin
Member 1254719729-Jul-16 7:29
Member 1254719729-Jul-16 7:29 
AnswerRe: please help me with this problem Pin
Richard Deeming29-Jul-16 7:44
mveRichard Deeming29-Jul-16 7:44 
Questionplease help me with this problem Pin
Member 1254719729-Jul-16 7:16
Member 1254719729-Jul-16 7:16 
AnswerRe: please help me with this problem Pin
leon de boer29-Jul-16 18:32
leon de boer29-Jul-16 18:32 
It's called string formatting and you want leading zeros

Here is the full reference
printf - C++ Reference[^]

Look at the sample with leading zeros ... which will be in your case you want 6 digits
printf ("Preceding with zeros: %06d \n", 6);
printf("Preceding with zeros: %06d \n", 28);
printf("Preceding with zeros: %06d \n", 66);

In vino veritas

QuestionRecursive directory search Pin
Anthony Appleyard29-Jul-16 5:44
Anthony Appleyard29-Jul-16 5:44 
QuestionRe: Recursive directory search Pin
Richard MacCutchan29-Jul-16 6:02
mveRichard MacCutchan29-Jul-16 6:02 
AnswerRe: Recursive directory search Pin
Anthony Appleyard29-Jul-16 11:57
Anthony Appleyard29-Jul-16 11:57 
GeneralRe: Recursive directory search Pin
Richard MacCutchan29-Jul-16 23:23
mveRichard MacCutchan29-Jul-16 23:23 
AnswerRe: Recursive directory search Pin
David Crow1-Aug-16 6:01
David Crow1-Aug-16 6:01 
Questionvariadic templates problem Pin
FriendOfAsherah29-Jul-16 0:49
FriendOfAsherah29-Jul-16 0:49 
QuestionTrying to understand my mistake... with pointers Pin
Blubbo28-Jul-16 9:04
Blubbo28-Jul-16 9:04 
AnswerRe: Trying to understand my mistake... with pointers Pin
jeron128-Jul-16 10:30
jeron128-Jul-16 10:30 
AnswerRe: Trying to understand my mistake... with pointers Pin
leon de boer29-Jul-16 18:53
leon de boer29-Jul-16 18:53 
Questionhow to create a file input button in microsoft visual c ++ ? Pin
jhonganteng28-Jul-16 4:46
jhonganteng28-Jul-16 4:46 
AnswerRe: how to create a file input button in microsoft visual c ++ ? Pin
Richard MacCutchan28-Jul-16 5:30
mveRichard MacCutchan28-Jul-16 5:30 
QuestionHelp With Exception Pin
ForNow26-Jul-16 13:47
ForNow26-Jul-16 13:47 
AnswerRe: Help With Exception Pin
leon de boer26-Jul-16 18:22
leon de boer26-Jul-16 18:22 
GeneralRe: Help With Exception Pin
ForNow26-Jul-16 21:01
ForNow26-Jul-16 21:01 
GeneralRe: Help With Exception Pin
leon de boer26-Jul-16 23:33
leon de boer26-Jul-16 23:33 
AnswerRe: Help With Exception Pin
Jochen Arndt26-Jul-16 22:47
professionalJochen Arndt26-Jul-16 22:47 
GeneralRe: Help With Exception Pin
ForNow27-Jul-16 3:14
ForNow27-Jul-16 3:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.