本帖最后由 plglenn15 于 2010-03-12 22:54:37 编辑

解决方案 »

  1.   

    http://www.iciba.com/human
      

  2.   

    class  Human
    {public:
       Human(){}
       void  SayHello(){}
         
    }human有哪些功能呢?
      

  3.   

    http://topic.csdn.net/u/20100312/23/cf91ce61-d1eb-432f-86ef-af3aef785d5d.html?74860
    int main()
    {
      int i = 5;
      foo(i);
      cout << i << endl;  // 输出 7
      return 0;
    }
     
    void foo(int& x)
    {
      x = 7;
    }
    =>
    int main()
    {
      int i = 5;
      foo(&i);
      cout << i << endl;  // 输出 7
      return 0;
    }
     
    void foo(int* x)
    {
      *x = 7;
    }引用存在有何价值,不是指针就可以实现么?空军int& x x是什么类型啊? int& int int* ?