[Solved] How to create a program that counts number of works and characters in a line in C++ WITHOUT using #include [closed]
For counting characters, you can read the characters in one-by-one (see istream::get()), maintaining a count until you hit an end-of-sentence marker. That means something like (pseudo-code, since only classwork tends to have these bizarre limitations and you’ll learn very little if we do the work for you): # Initial count. set charCount to 0 # … Read more