Skip to main content
deleted 122 characters in body
Source Link
Cliff B
  • 69.3k
  • 4
  • 33
  • 56

Very interesting problem. I'll spell out the symptoms, since they're not clear unless you step through the code, and let you resolve the problem! ;-)

First of all, it's not a problem with get_int.

If you step through the program, using debug50, here's what happens. On the first pass through the while loop, it prints some spaces, but it doesn't print any hashes or bricks!

You could also try printing an X instead of a space to see what's going on! It would make the problem obvious.

BTW, there's another subtle problem waiting in the wings. Hint: don't do anything that the instructions don't say to do.

If this answers your question, please click on the check mark to accept. Let's keep up on forum maintenance. ;-)

Very interesting problem. I'll spell out the symptoms, since they're not clear unless you step through the code, and let you resolve the problem! ;-)

First of all, it's not a problem with get_int.

If you step through the program, using debug50, here's what happens. On the first pass through the while loop, it prints some spaces, but it doesn't print any hashes or bricks!

You could also try printing an X instead of a space to see what's going on! It would make the problem obvious.

BTW, there's another subtle problem waiting in the wings. Hint: don't do anything that the instructions don't say to do.

If this answers your question, please click on the check mark to accept. Let's keep up on forum maintenance. ;-)

Very interesting problem. I'll spell out the symptoms, since they're not clear unless you step through the code, and let you resolve the problem! ;-)

First of all, it's not a problem with get_int.

If you step through the program, using debug50, here's what happens. On the first pass through the while loop, it prints some spaces, but it doesn't print any hashes or bricks!

You could also try printing an X instead of a space to see what's going on! It would make the problem obvious.

If this answers your question, please click on the check mark to accept. Let's keep up on forum maintenance. ;-)

Source Link
Cliff B
  • 69.3k
  • 4
  • 33
  • 56

Very interesting problem. I'll spell out the symptoms, since they're not clear unless you step through the code, and let you resolve the problem! ;-)

First of all, it's not a problem with get_int.

If you step through the program, using debug50, here's what happens. On the first pass through the while loop, it prints some spaces, but it doesn't print any hashes or bricks!

You could also try printing an X instead of a space to see what's going on! It would make the problem obvious.

BTW, there's another subtle problem waiting in the wings. Hint: don't do anything that the instructions don't say to do.

If this answers your question, please click on the check mark to accept. Let's keep up on forum maintenance. ;-)