VC和C#编译速度问题......
为了验证两种编译器的速度问题,写了一个递归程序(原自华为面试试题).
using
System;
using System.Collections.Generic;
using System.Text;
namespace Kick
... {
class Program
...{
static void Main(string[] args)
...{
int[] store;
store = new int[10];
int sum = 0;
M.Cumput(90, 9, store);
sum = M.sum2();
Console.Write("总数: {0}", sum);
Console.ReadLine();
}
}
public class M
...{
public static int sum;
using System.Collections.Generic;
using System.Text;
namespace Kick
... {
class Program
...{
static void Main(string[] args)
...{
int[] store;
store = new int[10];
int sum = 0;
M.Cumput(90, 9, store);
sum = M.sum2();
Console.Write("总数: {0}", sum);
Console.ReadLine();
}
}
public class M
...{
public static int sum;