Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can anybody tell me why this doesn't work
Message
From
03/08/2000 12:08:55
 
 
To
03/08/2000 11:00:51
General information
Forum:
Visual C++
Category:
Troubleshooting
Miscellaneous
Thread ID:
00400373
Message ID:
00400423
Views:
16
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform