1.given a text file. print the longest word of each line.
2.given file type, components. replace all the upper and lower letters.
1.given a text file. print the longest word of each line.
2.given file type, components. replace all the upper and lower letters.
What code have you gotten so far? And what problems are you specifically having? Noone is going to code it for you, although we can help you with any issues you may have.
Make sure you look up the toupper and tolower functions, and the strlen function.
Originally Posted by Plato
I think there shouldn't be any homework threads in the first place. People should ask questions about programming problems. The end result is a massive number of new accounts with < 10 posts every week begging for the next fix.
Devoted my life to programming...
If you have no interest in programming or doing your own work, you really should either drop the class if it's not required or start over with a new major. We have enough slackers out here in the work force, we sure as heck don't need yet another.