📄 show.cpp
字号:
// Show.cpp : implementation file
//
#include "stdafx.h"
#include "编排.h"
#include "Show.h"
#include "student.h"
#include "编排Dlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// Show dialog
Show::Show(CWnd* pParent /*=NULL*/)
: CDialog(Show::IDD, pParent)
{
//{{AFX_DATA_INIT(Show)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void Show::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(Show)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
void Show::DisplayStudentInfo(Student student[60], int n)
{
m_strStudentInfo = _T("");
for(int i = 0; i < n; i+=2)
{
CString strTemp;
strTemp.Format("%s<--->%s\t",student[i].name, student[i+1].name);
m_strStudentInfo += strTemp;
if (i%8 == 0 && i != 0)
{
m_strStudentInfo += "\r\n";
}
}
}
BEGIN_MESSAGE_MAP(Show, CDialog)
//{{AFX_MSG_MAP(Show)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// Show message handlers
BOOL Show::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
GetDlgItem(IDC_EDIT1)->SetWindowText(m_strStudentInfo);
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -