Mail Archives: djgpp/1998/02/28/00:16:29
From: | shifter <shifter AT sainet DOT net>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | why don't this work
|
Date: | Fri, 27 Feb 1998 23:09:43 -0600
|
Organization: | The Destek Group, Inc.
|
Lines: | 21
|
Message-ID: | <34F79C17.71DC@sainet.net>
|
NNTP-Posting-Host: | www.sainet.net
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
#include <stdio.h>
main()
{
char *i;
char *password;
clrscr();
printf ("Input a password:");
gets(password);
printf("you typed:%s\n",password);
do{
printf ("Input a password:%s:",i);
}while (gets(i) != password);
printf("you got it!!!");
exit(0);
}
i'm trying to get it to break out of loop with the correct password
what am i doing wrong?
ralph <shifter AT sainet DOT net>
- Raw text -