cin >> name; // reads up to whitespace, newline , or EOF
cin.getline(name, length); // reads up to newline, or EOF