Hello,
A few weeks ago, I was asking about how to ignore a return after a cin (affected my getlines). Now, I switched compilers, and have a serious issue:
Here is the codeCode:main.cpp(38) : warning C4003: not enough actual parameters for macro 'max'
main.cpp(38) : error C2589: '(' : illegal token on right side of '::'
main.cpp(38) : error C2143: syntax error : missing ')' before '::'
main.cpp(38) : error C2059: syntax error : ')'
I'm using the 1998 version of Microsoft Visual C++ (if that helps at all).Code:37: cin >> option;
38: cin.ignore(numeric_limits<streamsize>::max(),'\n');
39: return option;