📄 student.cpp
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -