还有datagrid怎么排序?如果不用sql语句的话。

解决方案 »

  1.   

    看看Datagrid的属性生成器 就知道了!
      

  2.   

    private void aa(int a)
    {
      if(aa!=1)
      {
       aa(a-1);
      }
    return;
    }Main()
    {
    aa(5);
    }
      

  3.   


    汉诺塔问题:
    [STAThread]
    static void Main(string[] args)
    {
    //
    // TODO: 在此处添加代码以启动应用程序
    // Console.WriteLine("**************************************************************");
    Console.WriteLine("*****                                                     ****");
    Console.WriteLine("********                   put a on b with c       **********");
    Console.WriteLine("***************                           *********************");
    Console.WriteLine("**************************************************************");
    Console.WriteLine("请输入盘的个数N:");
    string a=Console.ReadLine();
    int i;
    if(a.Length>0)
    {
    i=int.Parse(a);

    HNT(i,"a","b","c"); }
    } public static void HNT(int i,string a,string b,string c)
    {
    if(i>0)
    {
    HNT(i-1,a,c,b);
    Console.WriteLine("将"+a+"放到"+b+"上");
    HNT(i-1,c,b,a);
    }
    }
      

  4.   

    递归就是,你知道a1求a2,知道a2后求a3...循环