⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 s.cpp

📁 一个基于C++语言的简单学籍管理系统
💻 CPP
字号:
// S.cpp : implementation file
//

#include "stdafx.h"
#include "ClassEntryLink.h"
#include "S.h"

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

/////////////////////////////////////////////////////////////////////////////
// S dialog


S::S(CWnd* pParent /*=NULL*/)
	: CDialog(S::IDD, pParent)
{
	//{{AFX_DATA_INIT(S)
	m_name = _T("");
	m_power = _T("");
	m_type = _T("");
	//}}AFX_DATA_INIT
}


void S::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(S)
	DDX_Text(pDX, IDC_EDIT1, m_name);
	DDX_Text(pDX, IDC_EDIT2, m_power);
	DDX_Text(pDX, IDC_EDIT3, m_type);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(S, CDialog)
	//{{AFX_MSG_MAP(S)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// S message handlers

BOOL S::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

void S::OnOK() 
{
	// TODO: Add extra validation here
	UpdateData();
	POSITION pos = m_pDoc->m_classlst.GetHeadPosition();

	while(pos)
	{
		ClassEntry* p = (ClassEntry*)m_pDoc->m_classlst.GetNext(pos);
		if(p->m_name==m_str)
		{
		
			p->InsertData(m_name,m_power,m_type);
			break;
		}
	} 
	
	CDialog::OnOK();
}

⌨️ 快捷键说明

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