Click here to Skip to main content
15,936,633 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: The output seem confusing please clear my doubt Pin
Chuck O'Toole21-Oct-09 5:05
Chuck O'Toole21-Oct-09 5:05 
AnswerRe: The output seem confusing please clear my doubt Pin
transoft21-Oct-09 7:05
transoft21-Oct-09 7:05 
Questionnumbers with boxes Pin
kbury21-Oct-09 3:59
kbury21-Oct-09 3:59 
AnswerRe: numbers with boxes Pin
David Crow21-Oct-09 4:08
David Crow21-Oct-09 4:08 
GeneralRe: numbers with boxes Pin
kbury21-Oct-09 4:22
kbury21-Oct-09 4:22 
QuestionRe: numbers with boxes Pin
David Crow21-Oct-09 4:29
David Crow21-Oct-09 4:29 
AnswerRe: numbers with boxes Pin
kbury21-Oct-09 4:39
kbury21-Oct-09 4:39 
GeneralRe: numbers with boxes Pin
David Crow21-Oct-09 4:46
David Crow21-Oct-09 4:46 
Your while() loops are backwards. Think about drawing this figure on paper. You start with the first column of the first row, then the second column of the first row, etc. After the last column, you go to the next row (i.e., first column of the second row).

You've not changed the inner printf() statement to use a width specifier. Did you not read the link I offered? It should look like:

printf("| %2d", number);


"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons


GeneralRe: numbers with boxes Pin
kbury21-Oct-09 4:53
kbury21-Oct-09 4:53 
GeneralRe: numbers with boxes Pin
David Crow21-Oct-09 4:57
David Crow21-Oct-09 4:57 
GeneralRe: numbers with boxes Pin
kbury21-Oct-09 5:40
kbury21-Oct-09 5:40 
GeneralRe: numbers with boxes Pin
David Crow21-Oct-09 5:43
David Crow21-Oct-09 5:43 
GeneralRe: numbers with boxes Pin
kbury21-Oct-09 5:52
kbury21-Oct-09 5:52 
QuestionRe: numbers with boxes Pin
David Crow21-Oct-09 6:03
David Crow21-Oct-09 6:03 
GeneralRe: numbers with boxes Pin
kbury21-Oct-09 6:32
kbury21-Oct-09 6:32 
GeneralRe: numbers with boxes Pin
kbury21-Oct-09 6:53
kbury21-Oct-09 6:53 
QuestionRe: numbers with boxes Pin
David Crow21-Oct-09 7:04
David Crow21-Oct-09 7:04 
GeneralRe: numbers with boxes Pin
kbury21-Oct-09 7:31
kbury21-Oct-09 7:31 
GeneralRe: numbers with boxes Pin
David Crow21-Oct-09 7:36
David Crow21-Oct-09 7:36 
GeneralRe: numbers with boxes Pin
kbury21-Oct-09 7:47
kbury21-Oct-09 7:47 
QuestionRe: numbers with boxes Pin
David Crow21-Oct-09 7:59
David Crow21-Oct-09 7:59 
Questioncode to convert regular expression into dfa Pin
lavanya229021-Oct-09 1:34
lavanya229021-Oct-09 1:34 
AnswerRe: code to convert regular expression into dfa Pin
Hans Dietrich21-Oct-09 2:00
mentorHans Dietrich21-Oct-09 2:00 
QuestionRe: code to convert regular expression into dfa Pin
David Crow21-Oct-09 7:14
David Crow21-Oct-09 7:14 
QuestionHow to restore view settings in Dialog?? Pin
002comp21-Oct-09 0:25
002comp21-Oct-09 0:25 

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.