开发工具:VC6
开发语言:C++
第一步:新建对话框应用程序
布局界面效果
第二步:添加控件相关变量
变量
CButton m_calculate;
double m_score_1;
double m_score_10;
double m_score_2;
double m_score_3;
double m_score_4;
double m_score_5;
double m_score_6;
double m_score_7;
double m_score_8;
double m_score_9;
CString m_average;
CString m_max;
CString m_min;
CString m_sum;
关联控件
void CMax_minDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{
{AFX_DATA_MAP(CMax_minDlg)
DDX_Control(pDX, IDC_BUTTON1, m_calcul