第一次引用了函数,还是cmath库里的库函数 sqrt( ),开方用的
#include<iostream>
#include<cmath>
int main()
{
using namespace std;
double area;
cout << "Enter the floor area, in square feet, of your home:";
cin >> area;
double side;
side = sqrt(area);
cout << "That's the equivalent of a square 39.1918"
<< " feet to the side." << endl;
cout << "How fascinating!" << endl;
return 0;
}