write a program that reads in a file and counts the number of lines, words, and characters. Your program should ask the user to input a filename. Open the file and report an error if the file does not exist or cannot be opened for some other reason. Then read in the contents of the file and count the number of lines, words, and characters in the file. Also print additional information about the file, such as the longest and shortest words, and longest and shortest lines. For simplicity, we define a word to be one or more characters ending with white space (a space, tab, carriage return, etc.). Functions for checking the types of characters can be found in the ctype.h header file, so you want to include this header file in your program. For example, the sentence below could be all that is in a file. This sentence IT 104 is taught in C++. has 32 characters, one line, and six words. The shortest line is 32 characters. The longest line is 32 characters. The shortest word is 2 characters. The longest word is 6 characters
How to write a multi-statement macro?
How much amount of energy is required to break the triple bond in nitrogen molecule?
Where javac is located?
Why would you choose Supply Chain or Logistic as a career ??
Hi, If I am placing the order in amazon on behalf of the customer who place the order in other e-commerce application in which If I mention the billing address of the customer and goods will be delivered to the customer from amazon ,and other E-commerce site will deduct their commission on the certain % and make the payment to me on some what profit at that time how should maintain my books of account..??
What is fragment lifecycle?
Actuality I have at home electrical panel with 220v 50hz, and I want to converter from there to 110v 60hz, to wiring on the half of my house. Also I like to keep another half of my house with the original 220v 50hz. What is the best and safety way to do?
Is angularjs used for backend?
What does s c mean in text?
Do you use version control?
What are unicode sap web as platforms?
How to filter out the default route from outgoing bgp advertisements?
Explain how do I take good portraits?
What inspires you to be part of the Amazon family?