The problem occurs when mixing getline() with operator >>

see : http://www.codeguru.com/forum/showthread.php?t=519630