I was wondering how to use cin so that if the user does not enter in any value and just pushes ENTER that cin will recognize this as valid
cin
ENTER
You will probably want to try std::getline:
std::getline
#include #include std::string line; std::getline( std::cin, line ); if( line.empty() ) ...