can anyone explain me why output from this program
is: "This is test!"(without quotes)?
using namespace std;
string str = "This is, you shouldn't see this, just a test!";
string :: size_type start, end;
string delim = ",";
start = str.find(delim);
if (start == string::npos)
end = str.find(delim, start+delim.length());
cout << str;
I expected that characters between ',' (including them) would be removed.