hypot.cpp
来自「数据结构常用算法合集」· C++ 代码 · 共 14 行
CPP
14 行
//hypot.cpp
#include <iostream.h>
#include <math.h>
#include <conio.h>
void main(void)
{
double hypotenus;
double x = 3.0;
double y = 4.0;
hypotenus = hypot(x, y);
cout<<"斜边长="<<hypotenus;
getch();
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?