Ahhh.. class restrictions are important. Like I said, whichever way you did it with char line[30] would also work with C++ strings.