Can anybody tell me what actually is a "Sentinel Loop"? How is it different from others?
Thanks.
Type: Posts; User: TerryBogard
Can anybody tell me what actually is a "Sentinel Loop"? How is it different from others?
Thanks.
The program runs fine and I have added validation checks.
However, I'm trying to add a printf which will show up only when the data input is invalid and the field gets displayed again (just take a...
To use the example above, let's say the variable is dept_no and it is declared as an integer of 3 digits.
I'm trying to code it so that the program doesn't accept values that exceed the 3 digits...
If I were to use validation checks (both int and char) in a program, am I obliged to use structures to do so?
As an example, suppose I have a variable dept_no declared as int dept_no = 3. How is...
Hammer - Thanks! :)
Shiro - Thanks for the tip.
Salem - Hmmm...I didn't notice it when I browsed the board. :)
I guess my topic has been purged, so I'm creating a new one.
To those who remember my older topic (the Tax Program), I'd just like to let you know that everything is fine now. The program works,...
Believe it or not, I was never aware of this fact (but then, it's not that I ever used a switch statement either before).
Again, thanks for the help. With this part solved, I'll hopefully be able...
Magos - Well, I did what you said and opted for functions instead (you'll notice that it's a different kind of programme now --much shorter, but that's not very important, I think).
Anyway, the...
Yeah, I'm doing it again right now; using 3 functions -- details, calculations, and report.
I'll post it once I'm done, perhaps tomorrow.
Thanks for the pointer.
Magos - I tried that, but the programme wouldn't run and I couldn't fix that. Could you give me an example of how to do it? I'll check it later then.
Hammer - Yeah, I figured out about the telephone numbers. Thanks anyway. As for your corrections, I'll try them out as soon as possible. What you're saying makes sense, it'll very probably work. So,...
I'm currently trying to write a (small) tax programme and have at last managed to do so, but not without my problems.
My source code appears to be good, but when I run it (in Borland 3.0), the...
Salem - Thanks a lot! :)
Anyway, it's just a 'normal' password so only the person in charge of performing the tasks can access the program. I'm not trying to add one that could be changed later...
Here's my problem. I'm currently trying to write a small tax programme and in doing so, I'm also protecting it with a password (i.e. the user needs to input the correct password to be able to use the...