Click here to Skip to main content
16,005,236 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: The output seem confusing please clear my doubt Pin
Tim Craig21-Oct-09 20:02
Tim Craig21-Oct-09 20:02 
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 
nesting, but maybe i did it wrong, because it
came out with this

Mailbox Layout Program

How many rows of mailboxes will there be?4

How many columns of mailboxes will there be?5


The numbering layout will be:
+---+---+---+---+---+
| 1 |


Overall height of mailbox unit: 24
Overall width of mailbox unit: 20

<printf ("mailbox="" layout="" program\n\n");

printf="" ("how="" many="" rows="" of="" mailboxes="" will="" there="" be?");
scanf="" ("%d",="" &amp;rows);

printf="" ("\nhow="" columns="" &amp;cols);

printf="" ("\n\nthe="" numbering="" be:\n");
printf("+---+---+---+---+---+\n|");


{
while="" (c="" &lt;="cols)
{

c" =="" c="" +="" 1;
printf="" ("="" %d="" |",="" boxnum);
boxnum="boxnum" 1;
c="c++;
{
" while="" (r="" r="" ("\n="" \n");
boxnum="boxnum" 1;
r="r++;
}


unit_height" *="" mbxhgt;
unit_width="cols" mbxwid;



printf="" ("\noverall="" height="" mailbox="" unit:="" %d",="" unit_height);


="" pre="">

GeneralRe: numbers with boxes Pin
David Crow21-Oct-09 4:46
David Crow21-Oct-09 4:46 
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 

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.