谢谢!!!

解决方案 »

  1.   

    #inlcude <math.h>就可以用了吧
      

  2.   

    msdn的例子
    #include <math.h>
    #include <stdio.h>void main( void )
    {
       double pi = 3.1415926535;
       double x, y;   x = pi / 2;
       y = sin( x );
       printf( "sin( %f ) = %f\n", x, y );
       y = sinh( x );
       printf( "sinh( %f ) = %f\n",x, y );
       y = cos( x );
       printf( "cos( %f ) = %f\n", x, y );
       y = cosh( x );
       printf( "cosh( %f ) = %f\n",x, y );
    }
    Outputsin( 1.570796 ) = 1.000000
    sinh( 1.570796 ) = 2.301299
    cos( 1.570796 ) = 0.000000
    cosh( 1.570796 ) = 2.509178
    void main( void )
    {
       double pi = 3.1415926535;
       double x, y;   x = tan( pi / 4 );
       y = tanh( x );
       printf( "tan( %f ) = %f\n", pi/4, x );
       printf( "tanh( %f ) = %f\n", x, y );
    }
      

  3.   

    math.h里面的数学函数:
    sin、cos、tan:这个你应该懂吧。
    asin、acos、atan:反三角函数。
    sinh、cosh、tanh:双曲三角函数。
    log、log10:自然和常用对数。
    exp、pow10:上面两个函数的反函数。
    pow(x,y):返回x的y次幂。
    sqrt:开平方根。
    ceil:返回最小的不小于x的数。
    floor:返回最大的不大于x的数。
    hypot(x,y):返回x的平方加上y的平方再开方的值。
      

  4.   

    #inlcude <math.h>
    里面有n多
      

  5.   

    #include <math.h>
    怎么会不能用呢,应该可以的。
      

  6.   

    绝对可以用
    你include进来什么
    什么里的函数都能用
      

  7.   

    VC只是个开发环境,说起来最终还是写C++ 源码