Firstly, use code tags.
Secondly, you need to get the input into a string, preferably not a char[]
Thirdly, all you need to do is find ' ' characters and their location, and use them as slice indices. So:
"I am king"
Spaces at: 2 and 5
So then all chars between: 1; 3+4; 6-END
are your words you need to push.
If you are using a character array then you can use C function std::strtok to split the array into tokens (words).
The other way is to use std::istringstream and std::string
For example
1 2 3 4 5 6 7 8 9 10 11
std::vector<std::string> v;
std::string s;
std::cout << "Enter something: "; // :)
std::getline( std::cin, s );
std::istringstream is( s );
std::string word;
while ( is >> word ) v.push_back( word );