I know how to remove certain characters from a string by using something like this
string str ("Hello world!");
erase (0, 6);
That's great if I want to do that manually, but say if someone entered a string, how would I automatically remove every other character they entered? Sorry if this is a poor explanation, but I hope someone can help me.