TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: MATTHEW DUHART
from: JAVIER KOHEN
date: 1997-08-14 00:54:00
subject: A password program I mad

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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.