its that i just chenage from dev cpp to visual c++ 2008 express,real better and more complete but still got many problems on the begging after solving all them i got this new one that i cant solve, so any helps?
CODE
#include "calc.h"// just a header file that have some includes, just a organization stuff
using namespace std;
int main()
{
ini:
char op;
printf("(Calculadora de Medias.)\nVocêe Deseja:\nCalcular Media Bimestral(b)\nSoma das medias(a)\n");
cin >> op;
switch(op)
{
case 'b':
{
bool flag = false;
float n1;
float n2;
float avd;
float mb;
inib1:
printf("Digite a 1 nota do aluno.\n");
cin >> n1;
if(!cin.good())
{
flag = true;
printf("Numero Invalido.\n\a");
cin.clear();
cin.ignore(numeric_limits<streamsize>::max(),'\n');
//i can just change the numeric blah blah blah to 70 or other number but i still wanna know why i cant use if anyone helps me thx alot =D if u cant thx anyway
goto inib1;
}
else
{
if(n1>10||n1<0)
{
printf("Numero Invalido.\n\a");
goto inib1;
}
flag = false;
}
that is the error
error C2065: 'numeric_limits' : undeclared identifier
error C2275: 'std::streamsize' : illegal use of this type as an expression
see declaration of 'std::streamsize'
error C2780: 'const _Ty &std::max(const _Ty &,const _Ty &,_Pr)' : expects 3 arguments - 0 provided
see declaration of 'std::max'
error C2780: 'const _Ty &std::max(const _Ty &,const _Ty &)' : expects 2 arguments - 0 provided
see declaration of 'std::max'
i got about 5 or more times these problems