Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

ilahma / iax0583

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Commit 26dfeca1 authored 6 years ago by ilahma's avatar ilahma
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

Upload New File

parent f0218809 master
Show whitespace changes
Inline Side-by-side
Showing with 74 additions and 0 deletions
  • LAB11TASK1.c
LAB11TASK1.c 0 → 100644
View file @ 26dfeca1
#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;
}
This diff is collapsed. Click to expand it.
  • Write
  • Preview
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