#include<iostream>
#include<math>
using namespace std;
double max(double x,double y);
void main()
{
double a,b,c;
cout<<"input two numbers:\n";
cin>>a>>b;
c=max(a,b);
cout<<"the squart of maximum="<<sqrt(c);
}
double max(double x,double y)
{
if(x>y)
return x;
else
return y;
}
-------------------Configuration: Cpp1 - Win32 Debug--------------------
Compiling...
Cpp1.cpp
E:\新建文件夹\Cpp1.cpp(2) : fatal error C1083: Cannot open include file: 'math': No such file or directory
Error executing cl.exe.
Cpp1.obj - 1 error(s), 0 warning(s)
我是用微软的VC6.0