我认识的学生物的90后----二代,女神,和学霸# Biology - 生物学
h*g
1 楼
谢谢大家帮我看看,我实在不知道为啥错了
#include
using namespace std;
template< class T>class TreeNode{
public:
T data;
TreeNode(T v);
TreeNode *left;
TreeNode *right;
friend ostream &operator< &o);
};
template TreeNode ::TreeNode(T v)
:data(v), left(NULL), right(NULL)
{
}
template ostream &operator< &o){
stream<data<}
int main(){
TreeNode * head = new TreeNode (2);
cout< }
#include
using namespace std;
template< class T>class TreeNode{
public:
T data;
TreeNode(T v);
TreeNode
TreeNode
friend ostream &operator< &o);
};
template
:data(v), left(NULL), right(NULL)
{
}
template
stream<
int main(){
TreeNode
cout<