Help to complete this task
Post a Reply
|Oldest Newest Rating|
· November 27, 2015
Think about it like this....
scanf will put a string in 1 data storage, ie. char myInputString;
Then opening a file and reading the contents you put the data in to another data storage location, ie char fileInputString;
Then you compare the 2 strings to see if they match.
The difficult part is when you have many names in the file, or you have a file structure where the name is only 1 item of many.
Then you have to read the file data in and then check through it.
I hope this helps.
One of the most popular languages of all time.
|Bucky Roberts Administrator|