#pragma region sqrt.cpp
// using the sqrt()function
#if 1
#include <iostream>
#include<cmath> // or math.h
int main(void)
{
using namespace std;
double area;
cout << "Enter the floor area,in square feed, of your home: ";
cin >> area;
double side;
side = sqrt(area);
cout << "That's the equivalent of a square " << side
<< " feet to the side." << endl;
cout << "How fascinating!" << endl;
return 0;
}
#endif
#pragma endregion
C++ Primer Plus--0a3 库函数的使用
于 2024-05-10 09:23:02 首次发布