How to change stack size of a console application? [duplicate]
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: How to change stack size for a .NET program? I want to change the stack size for the following console application: using System; using System.IO; class Test { static int n; static bool[] us; static int[,] matr; static void dfs(int a) { us[a] = true; for (int b = 0; b < n; b++) { if (!us[b]) { dfs(b); } } } static void Main() { StreamReader input = new StreamReader("input.txt"); StreamWriter output = new