C++ I have a .txt file that is pretty long and I want the user to be able to change the number of characters per line in it. Spaces shouldn't be counted and the user shouldn't be allowed to put in a number less than 10. For example, The original .txt file says: In other words, what you’re proposing is to link all these documents together so that you can easily move from one to the other. In the output I want it to say: Maximum Characters: 10 // User will input the number of characters per line In other // if a word puts the number of characters over the limit set then it will put itself onto the next line words, what you’re proposing is to link all these documents together so that you can easily move from one to the other.
C++
I have a .txt file that is pretty long and I want the user to be able to change the number of characters per line in it. Spaces shouldn't be counted and the user shouldn't be allowed to put in a number less than 10.
For example,
The original .txt file says:
In other words, what you’re proposing is to link all these documents together
so that you can easily move from one to the other.
In the output I want it to say:
Maximum Characters: 10 // User will input the number of characters per line
In other // if a word puts the number of characters over the limit set then it will put itself onto the next line
words, what
you’re
proposing
is to link
all these
documents
together
so that you
can easily
move from
one to the
other.
Step by step
Solved in 4 steps with 2 images