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

📄 outdlg1.cpp

📁 毕业生信息管理系统的基本功能是对毕业生的信息进行管理
💻 CPP
字号:
// OUTDlg1.cpp : implementation file
//

#include "stdafx.h"
#include "BySys.h"
#include "OUTDlg1.h"
#include "Department.h"
#include <iostream.h>
#include <fstream.h>

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

/////////////////////////////////////////////////////////////////////////////
// COUTDlg dialog


COUTDlg::COUTDlg(CWnd* pParent /*=NULL*/)
	: CDialog(COUTDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(COUTDlg)
	m_tiaojian = _T("");
	//}}AFX_DATA_INIT
}


void COUTDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(COUTDlg)
	DDX_Text(pDX, IDC_EDIT1, m_tiaojian);
	//}}AFX_DATA_MAP
}


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

/////////////////////////////////////////////////////////////////////////////
// COUTDlg message handlers

void COUTDlg::OnOK() 
{
	// TODO: Add extra validation here
	UpdateData(TRUE);
	CDepartment dep;
	dep.GetData(m_tiaojian);
	if(dep.GetStu_id() ==NULL)
	{
		MessageBox("该学生不存在,请重新输入!");
	}
	ofstream fop("Student_text.doc");
	fop << dep.GetStu_id() << "   "<< dep.GetStu_Name() <<"   "<< dep.GetSch_Name() <<"   "<< dep.GetYard_Name() <<"   "<< dep.GetDep_Name() <<"   "<< dep.GetSep_Name() <<"   "<<endl;
    fop.close();

	CDialog::OnOK();
}

⌨️ 快捷键说明

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