I've searched online but can't find a way to way to split a char array by space (" ") and store each word into a vector.
int main()
{
string input;
vector <string> splitInput;
getline(cin, input);
char* chararray = new char[input.length() + 1];
strcpy_s(chararray, input.length() + 1, input.c_str());
//code to split chararray by space and store into splitInput
}