10-24-2004, 06:38 AM
Quote:Yes, some thoughts from the real world experience...To catch your attention later, list starts off from 2, and this is not a bug -- keep reading! :-D
- NOTICE:
Code below was **NEVER** tested! I'm bored at the office and compiled this one!.. If possible, debug it and, kindly ask me to edit the post (or, post the correct one)!..
Quote:OUTPUT: The message "VALID" or "INVALID".(2) To me, this doesn't necessarily mean the function returning the actual word. If not needed, functions **DO NEVER RETURN STRINGS** (yes, they're like math functions)!.....
Your remarks about the Valid Invalid strings are true. I used these specific strings to emphasize the result for the challenge. For "real world" as you say, they would return true (-1) or false (0).
Your remark of "code below was never tested!" completely turned me off regarding any appreciation of your suggested code "improvements".
*****