I need a function using strings that will:
check the string for beginning and ending quotes
if quotes are present, strip them and return the string
if the quotes are not there just return the string
This seems like it should be easy but I am new to using strings and can't get it to work.
I finally gave up and used character arrays.
Here is what I had with the strings:
string StripQuotes(string in)
string out = in;
int end = out.find('\"', 1);
if(end != out.npos)
What is wrong with the above function or
is there a better way to do this?