【段错误 (核心已转储) 最高记录】

 1 // Project name : 测试栈
 2 // File name    : main.cpp
 3 // Author       : iCoding
 4 // E-mail       : honi.linux@gmail.com
 5 // Date & Time  : Wed Aug  8 19:56:20 2012
 6 
 7 
 8 #include <iostream>
 9 #include <stdio.h>
10 #include <string>
11 #include <cmath>
12 #include <algorithm>
13 using namespace std;
14 
15 /*************************************************************************************/
16 /* data */
17 
18 
19 /*************************************************************************************/
20 /* procedure */
21 
22 void iTry(int x, int y, int value)
23 {
24     value = x * y;
25     cout << x << " " << value << endl;
26 
27     if (x == 1000000)
28     {
29         return;
30     }
31     else
32     {
33         iTry(x + 1, y + 1, value);
34     }
35 }
36 
37 /*************************************************************************************/
38 /* main */
39 int main()
40 {
41     iTry(1, 1, 1);
42     return 0;
43 }
44 
45 // end 
46 // Code by Sublime text 2
47 // iCoding@CodeLab 
原文地址:https://www.cnblogs.com/ismdeep/p/2628905.html