哈,main函数也可以自己调用自己
发布于 2006-01-23 11:29 1 阅读:47,461 评论:1 标签: C

  有意思!

/*********************************************
*Developer:                 yayu;            *
*My email:                  xieyayu@163.com  *
*Development environment:   Dev-C++ 4.9.9.0; *
*********************************************/

#include
#include

using namespace std;

int main(int x, int y)
{
  if(x||y)
  {
    cout <<"Get x:";
    cin >> x;
    cout <<"Get y:";
    cin >> y;
  }
     
  if(x    main(x,y);   
  else   
    cout<<"You are good!";
   
  return 0; 
}

函数

只要堆栈平衡了,啥都问题。

by PESoft 2008-01-03 12:52:57
Warning: Trying to access array offset on value of type bool in /opt/bitnami/apache/htdocs/workingsmarty/templates_c/e21e83752348f01f75c472238af0e4512d51cc32_0.file.left_look.html.php on line 154

Warning: Trying to access array offset on value of type bool in /opt/bitnami/apache/htdocs/workingsmarty/templates_c/e21e83752348f01f75c472238af0e4512d51cc32_0.file.left_look.html.php on line 172