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

c++程序为何异常

2012-04-12 
c++程序为何错误!#include iostreamusing namespace stdclass categoryclass call{public:call(){}cal

c++程序为何错误!
#include <iostream>
using namespace std;

class category;
class call{
public:
  call(){}
  call* (int* pointer)(){}
};

class category{
public:
  category(){}
  call obj;
};

int main()
{

}

[解决办法]
call* (int* pointer)(){} 这个看像是工程模式,创建对象的指针

class category{
public:
category(){}
call obj;//这个就是传说中的桥接模式
};

热点排行