Or better yet: why do some programs work on some compliers while others dont?
Code:
#include <ios>
#include <limits>

std::cin.ignore ( std::numeric_limits<std::streamsize>::max(), '\n' );