Hello
Some time ago I read Effective C++ and it advises programmers to use fgets() instead of get because you can specify how many characters to read, and thus avoid memory corruption if the input is too long.
Several new books (such as Prata or Professional C++) don't speak about fgets.
Is it because we don't need it anymore?
cin.get() and cin.getline() can also specify the size to read, and I think other functions too.
What's the difference between cin.get and fgets?