Sometimes when creating a program, it is needed that additional information from the user must be enterd. In C++ information is collected, via the object :"cin". If you do not secure these entries, then your program is likely to be victim of a "buffer overflow".
IF the number of characters entered exceeds the buffer size originally planned, then the latest data overwrites other data on the stack and write false data to ESP and EBP registries.
Using get ()
You can secure these data entries in different ways. For example, using the member method "get ()" of the object "cin" can be a solution.