Question: Write a program that reads a file one character at a time and prints out how many characters are uppercase letters, lowercase letters, digits, white
Write a program that reads a file one character at a time and prints out how many characters are uppercase letters, lowercase letters, digits, white space, and something else.
#include
int main() { cout << "Input file: " << endl; string input_file_name; cin >> input_file_name;
/* Your code goes here */
cout << "Uppercase: " << uppercase << endl; cout << "Lowercase: " << lowercase << endl; cout << "Digits: " << digits << endl; cout << "Whitespace: " << whitespace << endl; cout << "Other: " << other << endl; return 0; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
