搜索
编程论坛
→
开发语言
→
『 C语言论坛 』
→ 数组 x[] x是代表地址么?
标题:
数组 x[] x是代表地址么?
取消只看楼主
狂爱编程
等 级:
新手上路
帖 子:11
专家分:0
注 册:2013-10-8
结帖率:
33.33%
楼主
问题点数:0 回复次数:0
数组 x[] x是代表地址么?
#include <stdio.h>
#include <math.h>
int main()
{
double x[2], y[2];
while (scanf("%lf%lf%lf%lf", x[0], y[0], x[1], y[1]) != EOF)
printf("%.2f\n", sqrt((x[1]-x[0])*(x[1]-x[0]) + (y[1]-y[0])*(y[1]-y[0])));
return 0;
}
搜索更多相关主题的帖子:
include
double
return
2013-10-11 16:37
1
1/1页
1
参与讨论请移步原网站贴子:
https://bbs.bccn.net/thread-421725-1-1.html
关于我们
|
广告合作
|
编程中国
|
清除Cookies
|
TOP
|
手机版
编程中国
版权所有,并保留所有权利。
Powered by
Discuz
, Processed in 0.016940 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved