ans = raw_input("Input: ")
if ans.split()[0] == "hello":
something.add(ans.split()[1],ans.split()[2])
else if ans.split()[0] == "no":
else.add(ans.split()[1],ans.split()[2])
/*
So if i would input "Hello peter pan"
Then it would send in >> something.add("peter", "pan")
or
if i would input "no test 123"
Then it would send in >> else.add("test", "123")
*/
So what i want to do is "catch" every word from the input but i can't seem to find any easy way to do this function in c++. I'm really new to C++, any tips?