首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

弱弱的请问这个程序

2012-03-05 
弱弱的请教这个程序#includeiostream.hclassx{public:x(inti){cout constructing i endl}x

弱弱的请教这个程序
#include   <iostream.h>

class   x
{   public:
        x(int   i)
{cout < < "constructing   " < <i < <endl;}
x(x&)
{cout < < "copying   " < <endl;}
~x()
{cout < < "destruting   " < <endl;}
protected:


};

x   f(x)
{cout < < "ok " < <endl;}

  void   main()
  {   x   a(1);
      x   b=f(x);
    a=f(a);
      int   q;
      cin> > q;
  }

有那些问题???   这个是钱能书上的..叫你我调了半天还是没搞出来.

[解决办法]
乖乖,语法不通,逻辑不通...没有通的地方啊,我实在是不知道该怎么改了

这是多少页的例子?我去年当助教,恰巧有这本书

热点排行