Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can anybody tell me why this doesn't work
Message
De
03/08/2000 12:08:55
 
 
À
03/08/2000 11:00:51
Information générale
Forum:
Visual C++
Catégorie:
Problèmes
Divers
Thread ID:
00400373
Message ID:
00400423
Vues:
17
>Here is some code for a password. Can anybody tell me why I get an error?
>
>here is the code:
>
>#include
>
>int main()
>{
> int q ;
> char* name = '\0';
> char ch;
> char* password;
> bool breturn = false;
>
> puts("Password!");
> printf("Name:");
> scanf("%s",name);
> printf("Password:");
> for (q=0;q<200 && !breturn;q++)
> {
> ch = getch();
> if (ch =='\r')
> {
> breturn=true;
> }
> else
> {
> password[q] = ch;
> }
> }
>}

What error are you getting ???

Regards,

Jason
Jason Tryon
Senior Systems Analyst / Technical Lead
eBusiness / iPage
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform