it just keeps the console window open so the user can see the output of the program.එළකිරි කොල්ලෙක්;16696780 said:cin.get() ;
ekak danne mkada machan??
kelinma getVolume() call karama enne nedda??
it does so by getting the next character in the console, the command prompt will close as soon as the program finishes, meaning you can't see the output. Putting cin.get() forces the program to wait for the user to enter a key before it can close, and you can see the output of your program.

i never knw abt that 
