// Remove none alpha chats from a string.
// Date 08/10/2018
// By Ben

#include <iostream>

using namespace std;
using std::cout;
using std::endl;
using std::cin;

void StripNoneAlpha(string &source){
	int i = 0;
	string s0 = "";

	while (i < source.length()){
		//Check for alpha only
		if (isalpha(source[i])){
			//Build the new string.
			s0 += source[i];
		}
		i++;
	}
	source = s0;
}

int main(int argc, char *argv[]){
	string s0 = "http://www.Google.com";
	//Strip none alpha from the string above
	StripNoneAlpha(s0);
	//Output new string
	std::cout << s0.c_str() << endl;

	system("pause");
	return 0;
}