Need help.

I recently switched compilers to a more up to date one (Orwell Dev-C++), and the following code no longer works, can you please help give me the code that works like the following

cin.ignore(numeric_limits<streamsize>::max(), '\n')
assuming your using the namespace
Last edited on
Why does not the code work? Could you be more precise?
[Error] 'numeric_limits' was not declared in this scope
[Error] expected primary-expression before '>' token
[Error] no matching function for call to 'max()'

c:\program files\dev-cpp\mingw64\lib\gcc\x86_64-w64-mingw32\4.7.1\include\c++\bits\char_traits.h In file included from c:\program files\dev-cpp\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.7.1/include/c++/bits/char_traits.h
Last edited on
#include <limits>
Topic archived. No new replies allowed.