Yes, use std::string. Also, read up on stringstreams (#include <sstream>) to help in parsing from string to int. Using getline is good, but it does mean that you need another round of parsing to individual string tokens. Again, stringstream can help.