Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Challenge: Validate a code
#59
Blitz,
Your late entry is a beautiful piece of tight code.
However, I had the following little problems:
1) The OPEN statement had "a" instead of "as"
2) I discovered that I needed to compile with /ah switch.
3) It's supposed to exit on -1. However, it says that it's valid.
4) So, I tried some other negative numbers, like -99999 which caused a "subscript out of range" error.
5) You also allow leading, embedded and trailing blanks on the input numbers, which is not good practice. If I entered "1 3" but really meant "123" you accept the input as "13".
6) I also tried some numbers larger than 99999, like 222222, which caused the "subscript out of range" error.

With a few more minutes of work, your last entry could have been a serious contenter. However, we closed off the challenge earlier.

As far as judging is concerned, we don't have any other alternate way of judging challenges. Maybe what I've been doing is not the best way of judging, that is, having the person who posted the challenge be the judge, but it's been working up to now for my posts. Any suggestions?

Regarding my not understanding all the code, it's tough enough to get the programs to compile and then to test them thoroughly. I take a fast look at them to get a fundamental idea of how they work, but without comments of any kind, it's extremely hard to really comprhend the general algorithms of the programs and the logic of their respective functions. If you were test-driving a car, you'd start it up, put in gear and drive around a bit. You woudn't take the engine and transmission apart to see how everything works.
*****
Reply


Messages In This Thread
Challenge: Validate a code - by Moneo - 07-27-2003, 05:15 AM
oooh - by Meg - 07-27-2003, 06:57 AM
Challenge: Validate a code - by Moneo - 07-27-2003, 08:00 AM
yikes. - by Meg - 07-27-2003, 10:54 AM
Challenge: Validate a code - by Blitz - 07-27-2003, 02:28 PM
Challenge: Validate a code - by Antoni Gual - 07-27-2003, 04:00 PM
Challenge: Validate a code - by Blitz - 07-27-2003, 04:14 PM
Challenge: Validate a code - by Blitz - 07-27-2003, 04:21 PM
Yeah you see - by seph - 07-28-2003, 02:05 AM
Challenge: Validate a code - by Moneo - 07-28-2003, 04:54 AM
Challenge: Validate a code - by Blitz - 07-28-2003, 05:30 AM
Challenge: Validate a code - by Moneo - 07-28-2003, 05:33 AM
Challenge: Validate a code - by Moneo - 07-28-2003, 05:39 AM
Challenge: Validate a code - by Blitz - 07-28-2003, 06:46 AM
Challenge: Validate a code - by Moneo - 07-28-2003, 06:59 AM
Challenge: Validate a code - by Moneo - 07-28-2003, 07:17 AM
Challenge: Validate a code - by Blitz - 07-28-2003, 07:51 AM
Challenge: Validate a code - by Antoni Gual - 07-28-2003, 02:34 PM
Challenge: Validate a code - by Agamemnus - 07-28-2003, 04:16 PM
Challenge: Validate a code - by Blitz - 07-28-2003, 04:46 PM
Challenge: Validate a code - by Blitz - 07-28-2003, 04:50 PM
Challenge: Validate a code - by Agamemnus - 07-28-2003, 04:57 PM
Challenge: Validate a code - by Blitz - 07-28-2003, 06:14 PM
Challenge: Validate a code - by Antoni Gual - 07-28-2003, 06:26 PM
Challenge: Validate a code - by Blitz - 07-28-2003, 09:01 PM
Challenge: Validate a code - by Moneo - 07-28-2003, 09:21 PM
Challenge: Validate a code - by Blitz - 07-28-2003, 09:25 PM
Challenge: Validate a code - by Moneo - 07-28-2003, 09:28 PM
Challenge: Validate a code - by Moneo - 07-28-2003, 09:36 PM
Challenge: Validate a code - by Antoni Gual - 07-28-2003, 09:52 PM
Challenge: Validate a code - by Moneo - 07-28-2003, 10:15 PM
Challenge: Validate a code - by Blitz - 07-28-2003, 10:55 PM
Challenge: Validate a code - by Moneo - 07-28-2003, 11:01 PM
Challenge: Validate a code - by Agamemnus - 07-29-2003, 02:21 AM
Challenge: Validate a code - by Moneo - 07-29-2003, 02:35 AM
Challenge: Validate a code - by Antoni Gual - 07-29-2003, 03:22 AM
Challenge: Validate a code - by Moneo - 07-29-2003, 05:28 AM
Fixed - by Meg - 07-29-2003, 06:45 AM
Challenge: Validate a code - by Moneo - 07-29-2003, 07:17 AM
Challenge: Validate a code - by Agamemnus - 07-29-2003, 09:09 PM
Challenge: Validate a code - by Moneo - 07-29-2003, 10:32 PM
Challenge: Validate a code - by Agamemnus - 07-29-2003, 10:41 PM
Challenge: Validate a code - by Agamemnus - 07-29-2003, 11:16 PM
Challenge: Validate a code - by Moneo - 07-29-2003, 11:33 PM
Challenge: Validate a code - by Agamemnus - 07-29-2003, 11:37 PM
Challenge: Validate a code - by Moneo - 07-29-2003, 11:53 PM
Challenge: Validate a code - by Blitz - 07-29-2003, 11:53 PM
Let's mutiny.. - by Agamemnus - 07-30-2003, 12:06 AM
Challenge: Validate a code - by Moneo - 07-30-2003, 12:10 AM
Challenge: Validate a code - by Agamemnus - 07-30-2003, 12:13 AM
Challenge: Validate a code - by Moneo - 07-30-2003, 12:17 AM
Challenge: Validate a code - by Agamemnus - 07-30-2003, 12:24 AM
Challenge: Validate a code - by Blitz - 07-30-2003, 12:44 AM
Challenge: Validate a code - by Antoni Gual - 07-30-2003, 01:11 AM
Challenge: Validate a code - by Moneo - 07-30-2003, 03:33 AM
Challenge: Validate a code - by Blitz - 07-30-2003, 05:03 AM
Challenge: Validate a code - by Agamemnus - 08-01-2003, 07:32 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)