cin.ignore is standard C++, so it will work everywhere, regardless of your IDE.
Simply put
std::cin.ignore(std::numeric_limits<std::streamsize>::max());
Before a std::cin.get() to ignore...