I am learning c++, however, I can not understand what is the difference BTW:
std::cin.get();
and
std::cin.getline();
although;I know how to use each of them, but can't understand why there are two? I've read this explanation :
getline
reads the newline character then discard it; whereas.get()
reads it then leaves it in the input queue ..!! why each of them does what it does ?
sorry for bad English :(