TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: JAVIER KOHEN
from: MATTHEW DUHART
date: 1997-08-22 12:40: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 i
-> MD> actually useless because you have to enter a number, and no matte
-> 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 run
-> 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
Okay, thanks, I'll have to try that pretty soon.
--- GOMail v2.0 [94-0605]
---------------
-> * Origin: The King of The Ring (4:900/748.3)
* Origin: The Buzzard's Roost, Pueblo, CO (719) 564-8235 (1:307/8)

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™.