我在编译此类文件时遇到问题。
卡集
#include "Card.h"
#pragma once
using namespace System;
using namespace Collections;
generic <typename C>
public ref class CardSet<C>
{
public:
CardSet<C>();
};
卡集
#include "CardSet.h"
generic <typename C>
CardSet<C>::CardSet()
{
}
我正在关注http://www.functionx.com/cppcli/classes2/Lesson24d.htm
某人可以建议我在做什么错吗?
好吧,遵循本教程演示的语法,您不会<C>
在所有地方重复。正确的语法是:
generic <typename C>
public ref class CardSet {
public:
CardSet();
};
generic <typename C>
CardSet<C>::CardSet(){
}
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句