student.cpp

来自「用VC写的一个学生成绩管理系统」· C++ 代码 · 共 84 行

CPP
84
字号
// Student.cpp : implementation file
//

#include "stdafx.h"
#include "cj.h"
#include "Student.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CStudent

IMPLEMENT_DYNCREATE(CStudent, CDocument)

CStudent::CStudent()
{
}

BOOL CStudent::OnNewDocument()
{
	if (!CDocument::OnNewDocument())
		return FALSE;
	return TRUE;
}

CStudent::~CStudent()
{
}


BEGIN_MESSAGE_MAP(CStudent, CDocument)
	//{{AFX_MSG_MAP(CStudent)
		// NOTE - the ClassWizard will add and remove mapping macros here.
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CStudent diagnostics

#ifdef _DEBUG
void CStudent::AssertValid() const
{
	CDocument::AssertValid();
}

void CStudent::Dump(CDumpContext& dc) const
{
	CDocument::Dump(dc);
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CStudent serialization

void CStudent::Serialize(CArchive& ar)
{
	if (ar.IsStoring())
	{
	
		// TODO: add storing code here
	}
	else
	{
		// TODO: add loading code here
	}
}

/////////////////////////////////////////////////////////////////////////////
// CStudent commands

BOOL CStudent::stdstore()
{
CFile Studentinfor;
if(!Studentinfor.Open("studentinfor.txt",CFile::modeCreate|CFile::modeReadWrite))
  return FALSE;

else 
  return TRUE;
}

⌨️ 快捷键说明

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