Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- /* run this program using the console pauser or add your own getch, system("pause") or input loop */
- char username[50];
- char password [50];
- void login (char username, char password);
- int main(int argc, char *argv[]) {
- login(username, password);
- }
- void login(char username, char password)
- {
- do
- {
- printf("Please provide a username: \n");
- scanf("%s", username);
- }while(strcmp(username, "movie") != 0);
- do
- {
- printf("Please provide a password: \n");
- scanf("%s", password);
- }while(strcmp(password, "mo") != 0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement