Commit 26dfeca1 by ilahma

Upload New File

parent f0218809
Showing with 74 additions and 0 deletions
#include <stdio.h>
#include <string.h>
int nameValidate(char name[], char names[NAMECOUNT][20]);
int main () {
char names[6][20];
char passwords[6][20];
char acc_status[6][20];
char acc_balances[6][20];
int i;
for(i=1; i<=6;i++) {
printf("%s %s %s %s",);
}
return 0;
}
int nameValidate(char name[20], char names[NAMECOUNT][20]) {
int i;
}
}
return -1;
}
int passwordValidate(char name[20], char names[NAMECOUNT][20]) {
int i;
for(i=0; i<NAMECOUNT; i++) {
if(strcmp(name, names[i]) == 0) {
return i;
}
}
return -1;
}
int acc_status(char name[20], char names[NAMECOUNT][20]) {
int i;
for(i=0; i<NAMECOUNT; i++) {
if(strcmp(name, names[i]) == 0) {
return i;
}
}
return -1;
}
int acc_balances(char name[20], char names[NAMECOUNT][20]) {
int i;
for(i=0; i<NAMECOUNT; i++) {
if(strcmp(name, names[i]) == 0) {
return i;
}
}
return -1;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment