If I have a sentence like
"Hello, I am going for a walk. I will be back home in an hour!"
How do I tokenize the string in C++ so that I get this output:
Hello
,
I
am
going
for
a
walk
.
I
will
be
back
home
in
an
hour
!
The tokenizers I've looked at removes special signs like period, comma etc. But in this case I want to treat these special signs as "words" as shown above.