in a C++ program, there is a point when it reads a string like:
"NONAME_1_1\r" the \r is causing me trouble. I guess it prints or adds something like "^M". Is it right? Anyway it casues me problem, and I want to get rid of it.
I can not modify the input. I wonder how could I at this point, using C++, and in the easiest way, to remove \r for this string.
I know how to do it on bash but no clue on C++.
Thanks.