SLE-OOP.cpp
vector<string>* Split(string text) {
	vector<string>* ret = new vector<string>();
	stringstream stringBuilder;
	for (int c = 0; c < text.length(); ++c) {
		if (stringBuilder.str() != "" && text[c] == ' ') {
			//new 
			ret->push_back(stringBuilder.str());
			stringBuilder.str(string()); //clear
		}
		else {
			stringBuilder << text[c];
		}
	}
	if (stringBuilder.str() != "") {
		//new word
		ret->push_back(stringBuilder.str());
		stringBuilder.str(string()); //clear
	}
	return ret;
}
// splits a string into a vector list, with spaces as a seperator
splits a string into a vector list, with spaces as a seperator
splits a string into a vector list with spaces as a seperator
vector<string>* Split(string text) {
	vector<string>* ret = new vector<string>();
	stringstream stringBuilder;
	for (int c = 0; c < text.length(); ++c) {
		if (stringBuilder.str() != "" && text[c] == ' ') {
			ret->push_back(stringBuilder.str());
			stringBuilder.str(string()); 
		}
		else {
			stringBuilder << text[c];
		}
	}
	if (stringBuilder.str() != "") {
		word
		ret->push_back(stringBuilder.str());
		stringBuilder.str(string()); 
	}
	return ret;
}
vector < string > * Split ( string text ) { vector < string > * ret = new vector < string > ( ) ; stringstream stringBuilder ; for ( int c = 0 ; c < text . length ( ) ; ++ c ) { if ( stringBuilder . str ( ) != " " && text [ c ] == ' ' ) { ret -> push_back ( stringBuilder . str ( ) ) ; stringBuilder . str ( string ( ) ) ; } else { stringBuilder << text [ c ] ; } } if ( stringBuilder . str ( ) != " " ) { ret -> push_back ( stringBuilder . str ( ) ) ; stringBuilder . str ( string ( ) ) ; } return ret ; }
splits a string into a vector list, with spaces as a seperator
splits a string into a vector list with spaces as a seperator
//new  //clear //new word //clear