十进制的和十六进制的转换,你应该晓得怎么转吧。using System;public class CharStructureSample {
    public static void Main() {
        char chs = '汉';
int num=27721;
Console.WriteLine((int)chs);
Console.WriteLine((char)num);
    }
}

解决方案 »

  1.   

    C:\Documents and Settings\Administrator\My Documents\TEMP>system.char.exe
    27721
    汉C:\Documents and Settings\Administrator\My Documents\TEMP>
      

  2.   

    我用vb怎么写
    MessageBox.Show(Char.Parse(num1))
    会报错
      

  3.   

    是vb,还是vb.net?我小小的逼视一下vb6哈。把我要整惨了。
    你要的东西
    using System;public class CharStructureSample {
        public static void Main() {
            char chs = '汉';
    int num=27721;
    System.Windows.Forms.MessageBox.Show(((int)chs).ToString());
    System.Windows.Forms.MessageBox.Show(((char)num).ToString());
        }
    }
      

  4.   

    是vb.net,怎么做,c#我已经会了。
      

  5.   

    System.Windows.Forms.MessageBox.Show(((int)chs).ToString());
    System.Windows.Forms.MessageBox.Show(((char)num).ToString());无论在vb.net中还是在c#中,都是可以的。
      

  6.   

    System.Windows.Forms.MessageBox.Show(((char)num).ToString())
    编译通不过
    c:\test\Form1.vb(381): “Char”是类型,因此不是有效表达式。
      

  7.   

    不好意思,我忘记了你们不能够(char)num。我再看看
      

  8.   

    什么叫我们啊。我是c#和vb.net都用,但都稀松。
    真是多谢你啊。就送10给你,太少了。可是我都没分了。
    等着你的答案.......
      

  9.   

    private void Page_Load(object sender, System.EventArgs e)
    {
    char chs = '汉';
    int num=27721;
    this.Page.Response.Write((Convert.ToInt16(chs)));
    this.Page.Response.Write(Convert.ToChar(num));
    }
      

  10.   

    呵呵,分啥子彼此嘛。呵呵。
    我有可用分,但是不能够转移给你(csdn目前关闭了可用分捐赠的功能)
      

  11.   

    标准的fcl类库调用方法,应该没有问题了吧。再加上一个保险——Convert.ToString。private void Page_Load(object sender, System.EventArgs e)
    {
    char chs = '汉';
    int num=27721;
    this.Page.Response.Write(Convert.ToString((Convert.ToInt16(chs))));
    this.Page.Response.Write(Convert.ToString(Convert.ToChar(num)));
    }