Search found 4 matches

by rdinix
Mon Nov 11, 2002 6:31 pm
Forum: Volume 1 (100-199)
Topic: 101 - The Blocks Problem
Replies: 635
Views: 108876

Problem 101

First of all, format your program like this:

[cpp]while
{
command 1;
command 2;
etc...;
}[/cpp]

Second, put /* COMMENTS */

Third, put a routine that prints the 25x25 matrix after every input, so you can check what
by rdinix
Fri Nov 01, 2002 5:13 am
Forum: Volume 1 (100-199)
Topic: 101 - The Blocks Problem
Replies: 635
Views: 108876

Well, I think you got it!
getchar() is not really necessary!
scanf() can do the job for you!
I would also recomend you to test your program with a command set like:

25
pile -9 onto -333
move 75 over 75
move 20 onto 25
quit

Good Luck!!!
by rdinix
Tue Oct 29, 2002 5:48 am
Forum: Volume 1 (100-199)
Topic: 101 - The Blocks Problem
Replies: 635
Views: 108876

And >25?
by rdinix
Sat Oct 26, 2002 9:55 pm
Forum: Volume 1 (100-199)
Topic: 101 - The Blocks Problem
Replies: 635
Views: 108876

Re:101

Hi, Archer
I think your code is not dealing with cases such as a<0 or b<0

Go to advanced search