#include <iostream>
using namespace std;
template <class T>
class SimNode
{
friend SimSpace<T>;
private:
T data;
int link;
};
template <class T>
class SimSpace
{
private:
SimNode<T>* space;
};
int main()
{
system("pause");
return 0;
}
报错之后问题出现在
friend SimSpace<T>;
请问为什么?
There is something wrong with your statement, it should be