Ok so i have figured out the load function and print function of a .txt input file. I need help with a check function (to check if the values scanned in main are in the loaded .txt file). the .txt file has names, account numbers, and account values.
my program looks vaguely like this (plz ignore all compile errors, this is not exact code):
Code:
int main (int argc,char** argv)
{
int load_file(char*,char**,int *, float *,int)
void print_file(char**,int *,float *,int)
printf("Enter a name? ")
scanf(%s,name)
printf(Enter account number )
scanf(%d,act number)
//i need to check if the name and number entered is in my .txt file!
//function must use pointers!!! and look like
int check(char**,int *, char *,int, int)
return 0;
}
//can some make the check function for me??
My load and print functions print the .txt file.