📄 student.h
字号:
// Student.h: interface for the CStudent class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_STUDENT_H__E988DD2A_C258_4B58_BD36_84D5F6376BAE__INCLUDED_)
#define AFX_STUDENT_H__E988DD2A_C258_4B58_BD36_84D5F6376BAE__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <string.h>
#include <vector>
#include<iostream>
#include<fstream>
#include "CourseScore.h"
using namespace std;
class CStudent
{
protected:
string m_strName;
string m_strNo;
//vector< CCourseScore* > m_vCourse;
int m_iGrade;
public:
CStudent(string strName,
string strNo,int iGrade);
CStudent();
void display()
{
cout<<"name=\""<<m_strName<<"\""
<<",no="<<m_strNo
<<",grade="
<<m_iGrade<<"\n";
}
virtual ~CStudent();
};
#endif // !defined(AFX_STUDENT_H__E988DD2A_C258_4B58_BD36_84D5F6376BAE__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -