Note
- Work on an assignment by yourself without sharing the answer to a classmate. (It is great that students study together but an assignment is an individual task. It is not a group project.)
- Start to do an assignment early and ask the teacher if you have a question.
- Add a comment with your name at the top of your source code
- Put all your files that you want to submit into one zip file
- Your folder should have your last name, first name, your class and assignment number. Example: rattanasook_hathairat_cs50_6.zip
Please save the program with the name ‘files.c’
Write a program that merges two files as follows. The two files are in the docsharing which you can download it.
One file will contain usernames (usernames.txt):
1 |
foster001 |
The other file will contain passwords (passwords.txt):
1 |
x34rdf3e |
The program should create a third file matching username and passwords (usernamesPasswords.txt):
1 |
foster001 x34rdf3e |
Give the user of your programs the option of displaying you output file.
Tips
下边是完整实现
1 |
|
近期评论