一个球面积,曲率半径,子午圈的C++程序,有需要的请下载

源代码在线查看: length.cpp

软件大小: 40 K
上传用户: SMILE19890517
关键词: 半径 程序
下载地址: 免注册下载 普通下载 VIP

相关代码

				// Length.cpp : implementation file
				//
				
				#include "stdafx.h"
				#include "DtPro.h"
				#include "Length.h"
				
				#ifdef _DEBUG
				#define new DEBUG_NEW
				#undef THIS_FILE
				static char THIS_FILE[] = __FILE__;
				#endif
				
				/////////////////////////////////////////////////////////////////////////////
				// CLength dialog
				
				
				CLength::CLength(CWnd* pParent /*=NULL*/)
					: CDialog(CLength::IDD, pParent)
				{
					//{{AFX_DATA_INIT(CLength)
					m_xDg = 0;
					m_xSd = 0;
					m_yDg = 0;
					m_ySd = 0;
					temp=0;
					m_xDg1 = 0;
					m_xSd1 = 0;
					m_yDg1 = 0;
					m_ySd1 = 0;
					m_bUsed=0;
					//}}AFX_DATA_INIT
				}
				
				
				void CLength::DoDataExchange(CDataExchange* pDX)
				{
					CDialog::DoDataExchange(pDX);
					//{{AFX_DATA_MAP(CLength)
					DDX_Text(pDX, IDC_EDIT1, m_xDg);
					DDV_MinMaxInt(pDX, m_xDg, 0, 90);
					DDX_Text(pDX, IDC_EDIT2, m_xSd);
					DDV_MinMaxInt(pDX, m_xSd, 0, 60);
					DDX_Text(pDX, IDC_EDIT3, m_yDg);
					DDV_MinMaxInt(pDX, m_yDg, 0, 180);
					DDX_Text(pDX, IDC_EDIT4, m_ySd);
					DDV_MinMaxInt(pDX, m_ySd, 0, 60);
					DDX_Text(pDX, IDC_EDIT5, m_xDg1);
					DDV_MinMaxInt(pDX, m_xDg1, 0, 90);
					DDX_Text(pDX, IDC_EDIT6, m_xSd1);
					DDV_MinMaxInt(pDX, m_xSd1, 0, 60);
					DDX_Text(pDX, IDC_EDIT7, m_yDg1);
					DDV_MinMaxInt(pDX, m_yDg1, 0, 180);
					DDX_Text(pDX, IDC_EDIT8, m_ySd1);
					DDV_MinMaxInt(pDX, m_ySd1, 0, 60);
					//}}AFX_DATA_MAP
				}
				
				
				BEGIN_MESSAGE_MAP(CLength, CDialog)
					//{{AFX_MSG_MAP(CLength)
					ON_BN_CLICKED(IDC_RADIO3, OnRadio3)
					ON_BN_CLICKED(IDC_RADIO4, OnRadio4)
					//}}AFX_MSG_MAP
				END_MESSAGE_MAP()
				
				/////////////////////////////////////////////////////////////////////////////
				// CLength message handlers
				
				void CLength::OnOK() 
				{
					// TODO: Add extra validation here
					temp=1;
					CDialog::OnOK();
					
				}
				
				void CLength::OnCancel() 
				{
					// TODO: Add extra cleanup here
					temp=0;
					
					CDialog::OnCancel();
				}
				
				void CLength::OnRadio3() 
				{
					// TODO: Add your control notification handler code here
					m_bUsed=0;		
				}
				
				void CLength::OnRadio4() 
				{
					// TODO: Add your control notification handler code here
					m_bUsed=1;
					
				}
							

相关资源