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

模版类//为什么报错与模版参数不匹配?该怎么解决

2013-11-13 
模版类//为什么报错与模版参数不匹配?complate typename tclass test{public:test()}complate typena

模版类//为什么报错与模版参数不匹配?
complate <typename t>
class test{
public:
    test();
};

complate <typename t>
test::test(){}
[解决办法]


template <typename t>
class test{
public:
    test();
};

template <typename t>
test<t>::test()
{
}

热点排行