Question: wc.cpp This must be done in C++. ./wc [-c | -l | -w] [file...] The wc utility shall read one or more input files and,
wc.cpp
This must be done in C++.
./wc [-c | -l | -w] [file...]
The wc utility shall read one or more input files and, by default, write the number of newlines, words, and bytes contained in each input file to the standard output. The utility also shall write a total count for all named files, if more than one input file is specified. The wc utility shall consider a word to be a non-zero-length string of characters delimited by white space. If no file operand is specified, or when file is -, then standard input is assumed.
-c: Write to the standard output the number of bytes in each input file. -l: Write to the standard output the number of newlines in each input file.
-w: Write to the standard output the number of words in each input file.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
