C++ get line example with few words