CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
不看会后悔的Windows XP之经验谈 简单快捷DIY实用家庭影院
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  VC/MFC >  基础类

windows程序设计中请问hypot函数的作用是什么

楼主newgina(哈哈哈)2002-11-15 18:53:52 在 VC/MFC / 基础类 提问

请问hypot函数的作用是什么  
   
  windows程序设计中说:每条线的长度为变量fradius,这是从中心到客户区的角落的距离:  
                  fradius=hypot(xClient/2.0,yClient/2.0);  
   
  这里的xClient,yClient在前面都已经有复值。而且书中提到两次hypot.一次在函数前加了个_.一次没有。调用这个函数用不用加_呀  
  问题点数:20、回复次数:3Top

1 楼JennyVenus()回复于 2002-11-15 19:11:42 得分 8

计算三角形的斜边Top

2 楼cgsw12345(cgsw)回复于 2002-11-15 19:48:57 得分 4

可以去查幫助!MSDN應該有Top

3 楼zhf0021(屡战屡败,屡败屡战)回复于 2002-11-15 20:56:50 得分 8

FROM   MSDN:  
   
  Calculates   the   hypotenuse.  
   
  Routine   Required   Header    
  _hypot   <math.h>    
   
   
  double   _hypot(   double   x,   double   y   );  
  Parameters  
  x,   y    
  Floating-point   values    
  Libraries  
  All   versions   of   the   C   run-time   libraries.  
   
  Return   Values  
  _hypot   returns   the   length   of   the   hypotenuse   if   successful   or   INF   (infinity)   on   overflow.    
   
  Remarks  
  The   _hypot   function   calculates   the   length   of   the   hypotenuse   of   a   right   triangle,   given   the   length   of   the   two   sides   x   and   y.   A   call   to   _hypot   is   equivalent   to   the   square   root   of   x2   +   y2.    
   
  Top

相关问题

  • <windows程序设计>中InvalidateRect函数的疑问??
  • windows程序设计第五章中clover.c程序中的_hypot是什么意思
  • 求拦截API函数的源代码。(Windows程序设计中的代码也可)
  • 《windows 程序设计》
  • 《windows程序设计》
  • 关于《windows 程序设计》
  • 关于《windows程序设计》
  • 《Windows 程序设计》(5)?
  • 《windows程序设计》,唉!
  • <<Windows程序设计>>下载???

关键词

  • 函数
  • windows程序设计
  • hypot
  • hypotenuse
  • 请问
  • yclient
  • xclient
  • fradius
  • 作用是什么
  • calculates

得分解答快速导航

  • 帖主:newgina
  • JennyVenus
  • cgsw12345
  • zhf0021

相关链接

  • Visual C++类图书
  • Visual C++类源码下载

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
北京创新乐知广告有限公司 版权所有, 京 ICP 证 070598 号
世纪乐知(北京)网络技术有限公司 提供技术支持
Copyright © 2000-2008, CSDN.NET, All Rights Reserved
GongshangLogo