如題

解决方案 »

  1.   

    Math下有方法
    如:Math.Abs();
      

  2.   

    using System.Math;然后Math.Abs(argument);
      

  3.   

    谢楼上朋友
    有Math.Acs(argument)和Math.Hex(argument)这两个函数吗?
      

  4.   

    abs很简单,自己写个函数都可以。
    int x=-1;
    if(x<0)
    {
    x*=-1;
    }
    asc在c#可以这么写
    char c='a';
    int i=c;
    i就是'a'的ascii值。
      

  5.   

    chenyuming2004(一切从2004开始):那Hex()用c#如何寫?謝了!