// Removed chars from string2 that are in string1
// Version 1.0
// Date 18:38 08/10/2016
// By Ben a.k.a DreamVB

#include <iostream>

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

int main(int argc, char *argv[]){
	string s0 = "aeiou";
	string s1 = "Today I went to the zoo it was so much fun";
	string s3 = "";
	int LoopUp[26] = { 0 };

	int i = 0;
	int j = 0;
	int idx = 0;

	cout << "s0 = " << s0.c_str() << endl;
	cout << "s0 = " << s1.c_str() << endl;
	
	while (i < s0.length()){
		//Get char index
		idx = tolower(s0[i]) - 'a';
		//Add to look up
		LoopUp[idx] = 1;
		i++;
	}

	i = 0;

	while (i < s1.length()){
		//Get char index
		idx = tolower(s1[i]) - 'a';

		//Check letters to remove using loop up
		if (LoopUp[idx] != 1){
			s3 += s1[i];
		}
		//INC counter
		i++;
	}

	cout << endl << "New Strings" << endl;
	cout << "s0 = " << s0.c_str() << endl;
	cout << "s1 = " << s3.c_str() << endl;

	system("pause");
	return 0;
}
