NOTE: Program MUST be written in C NOT C++, using headers such as stdio.h, time.
ID: 3534785 • Letter: N
Question
NOTE: Program MUST be written in C NOT C++, using headers such as stdio.h, time.h, stdlib.h, ctype.h, or string.h. Headers such as iostream.h or fstream.h cannot be used and will not be rated! Thank you!
YOU WILL BE GIVEN 5 STARS IF THE PROGRAM WORKS AS ASKED.
2. Given an input file, named "input.dat", which contains a list of words with their lengths, write a program to find the words that appears only once in the file and write the output to a file named output.dat". For example, a "input.dat" looks like:
3 foo
8 blahblah
9 something
8 anything
8 blahblah
8 fumofumo
3 foo
8 anything
Output should be a file, named "output.dat", which looks like:
something
fumofumo
Explanation / Answer
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.