标题:程序遇到无效指令并关闭 ?
取消只看楼主
lzxm160
Rank: 1
等 级:新手上路
帖 子:103
专家分:0
注 册:2006-12-26
 问题点数:0 回复次数:0 
程序遇到无效指令并关闭 ?
#include<stdio.h>
#include<math.h>
void main()
{
    float *x, *y;
    void change(float *x, float *y);
    printf("input x,y:\n");scanf("%f%f", x, y);
    change(x, y);
    printf("%f,%f", *x, *y);
}
void change(float *x,float *y)
{
    float s=*x, p=*y;
    s = pow((s) * (s) + (p) * (p), 1.0 / 2);
    //p = pow(tan((p) / (s)), -1);
    p=tan(p/s);
    p=p/1;
    *x = s;*y = p;
}
搜索更多相关主题的帖子: float 指令 void change 
2008-01-08 21:52



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-196571-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.385046 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved