On 09-Aug-97, MATTHEW DUHART wrote to RAJESH DHAWAN about A password program
I mad.
MD> Lafore's Object-Oriented Programming in Turbo C++. This program is
MD> actually useless because you have to enter a number, and no matter
MD> what, the program exits instead of if you're right then continue,
Actually, you can exit with errorlevels, ie:
int main(void) {
[..]
if (password.right()) {
return 0;
} else {
return 1;
}
}
MD> anything else. But I've made a new line in the program where if
MD> you enter the wrong password, the computer repeats a line. It runs
MD> this line: aq:goto aq; . So therefore, the computer locks up.
With the modification above you may want to give the user say, 3 tries,
and if (s)he fails, then lock up the computer.
Javier Kohen [The_Crusher] http://jkohen.base.org
... EchoMail (ek-o-mael) n. A tagline distribution system
-!- CrusherTag 0.3.2.
--- Terminate 5.00 UnReg
---------------
* Origin: The King of The Ring (4:900/748.3)
|