#include <math.h>
int myfun()
{
double a;
a=sqrt(M_PI);
return 0;
}
1>d:\myprog\myproj\myproj\other.cpp(6) : error C2065: 'M_PI' : undeclared identifier
1>Build log was saved at "file://d:\MyProg\MyProj\MyProj\Debug\BuildLog.htm"
1>MyProj - 1 error(s), 0 warning(s)
#include <math.h>
int myfun()
{
double a;
a=sqrt(3.14);
return 0;
}
1>MyProj - 0 error(s), 0 warning(s)
#define M_PI 3.14159265358979323846
Если Вы уже зарегистрированы на Портале - войдите в систему, если Вы еще не регистрировались - пройдите простую процедуру регистрации.