Using substr and concatenation, give a program containing a sequence of commands that will extract characters from input_string = "Four score and seven years ago our fathers" to make output_string = "carefree and no tears". Then print output_string.
Here is my code:
using namespace std;
to extract "carefree and no tears" in my output stream using substr and concatenation, what would I do? What i was attempting to do (although it doesn't make sense in my code) is extract the column, and the number of letters in "Four score and seven years ago our fathers" to create "carefree and no tears".