sqrt.cpp
来自「C++ Primer Plus(第五版)中文版 书籍的大量经典代码实例 对于初学」· C++ 代码 · 共 20 行
CPP
20 行
// sqrt.cpp -- use the sqrt() function#include <iostream>#include <cmath> // or math.hint 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 " << side << " feet to the side." << endl; cout << "How fascinating!" << endl; return 0;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?