I'm not fully sure what you mean by an input box. Are you referring to an edit control or something like that? If so, you'll want to use GetWindowText to get the text from it. If you mean a console window then you'd use one of the functions from the standard library such as scanf.
If you need to split a buffer of text into words, you could use strtok to loop through them.
Whatever