你的项目->属性->debugging 里面有一个command argument

解决方案 »

  1.   

    class MainClass 
    {
       public static int Main(string[] args) 
       {
          // Test if input arguments were supplied:
          if (args.Length == 0)  
          {
             Console.WriteLine("Please enter a numeric argument."); 
             Console.WriteLine("Usage: Factorial <num>"); 
             return 1; 
          }      // Convert the input arguments to numbers:
          long num = long.Parse(args[0]); 
          Console.WriteLine("The Factorial of {0} is {1}.", 
                            num, Factorial.Fac(num)); 
          return 0;
       }
    }
      

  2.   

    请问 Montaque老兄,如何设置Command Argument?
      

  3.   

    工程属性->调试->命令行参数我好像是个翻译?