binnode.cpp

来自「VC++.net下用链表实现的学生信息管理系统」· C++ 代码 · 共 30 行

CPP
30
字号
#include "StdAfx.h"
#include ".\binnode.h"
#include <string>

//BinNode::BinNode(void)


BinNode::~BinNode(void)
{
}

/*void BinNode::SetInfo(StuInfo sl)
{
	cout<<"please input the Name:\n";
	cin>>sl.Name;
	cout<<"please enter the Number:\n";
	cin>>sl.Num;
	cout<<"please write the Score:\n";
	cin>>sl.Score;
	sl.setName(sl.Name);
}*/

BinNode::BinNode(StuInfo st,BinNode *lChild,BinNode* rChild)
{
	lChild=NULL;
	rChild=NULL;
	strcpy(this->stInfo.Name,st.Name);
	strcpy(this->stInfo.Num,st.Num);
	this->stInfo.Score=st.Score;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?