体育信息管理系统
源代码在线查看: add.cpp
// ADD.cpp : implementation file
//
#include "stdafx.h"
#include "ooo.h"
#include "ADD.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// ADD dialog
ADD::ADD(CWnd* pParent /*=NULL*/)
: CDialog(ADD::IDD, pParent)
{
//{{AFX_DATA_INIT(ADD)
m_name = _T("");
sex=0;
m_jumpline = 0.0;
m_jump = 0.0;
m_run = 0.0;
m_ball = 0.0;
m_down = 0.0;
m_gang = 0.0;
m_yang = 0.0;
m_jiqiao = 0.0;
m_text = 0.0;
//}}AFX_DATA_INIT
}
void ADD::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(ADD)
DDX_Text(pDX, IDC_EDIT1, m_name);
DDX_Text(pDX, IDC_EDIT2, m_jumpline);
DDX_Text(pDX, IDC_EDIT3, m_jump);
DDX_Text(pDX, IDC_EDIT4, m_run);
DDX_Text(pDX, IDC_EDIT5, m_ball);
DDX_Text(pDX, IDC_EDIT6, m_down);
DDX_Text(pDX, IDC_EDIT7, m_gang);
DDX_Text(pDX, IDC_EDIT8, m_yang);
DDX_Text(pDX, IDC_EDIT9, m_jiqiao);
DDX_Text(pDX, IDC_EDIT10, m_text);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(ADD, CDialog)
//{{AFX_MSG_MAP(ADD)
ON_BN_CLICKED(IDC_RADIO1, OnRadio1)
ON_BN_CLICKED(IDC_RADIO2, OnRadio2)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// ADD message handlers
void ADD::OnRadio1()
{
sex=1;//男
}
void ADD::OnRadio2()
{
sex=2;
}