[VC++]계산기 프로그램
- 최초 등록일
- 2007.10.02
- 최종 저작일
- 2007.09
- 압축파일
- 가격 1,000원
소개글
void CCalDlg::OnButton2()
{
// TODO: Add your control notification handler code here
m_strEdit +="2";
UpdateData(FALSE);
}
void CCalDlg::OnButtonMul()
{
// TODO: Add your control notification handler code here
m_operand1=atof(m_strEdit);
m_chOp ='*';
m_strEdit ="";
UpdateData(FALSE);
}
void CCalDlg::OnButtonEnter()
{
// TODO: Add your control notification handler code here
m_operand2=atof(m_strEdit);
switch (m_chOp){
case '+':
m_result=m_operand1 + m_operand2;
break;
case '-':
m_result=m_operand1 - m_operand2;
break;
case '*':
m_result=m_operand1 * m_operand2;
break;
case '/':
m_result=m_operand1 / m_operand2;
break;
}
m_strEdit.Format("%.2f",m_result);
UpdateData(FALSE);
컴파일 실행환경
VC++
압축파일 내 파일목록
StdAfx.cpp
calculator.clw
calculator.plg
calculator.ncb
calculator.opt
calculator.rc
calculator.positions
ReadMe.txt
calculator.dsw
calculator.dsp
calculator.aps
calculator.h
calculatorDoc.h
calculatorView.h
CalDlg.h
MainFrm.h
resource.h
StdAfx.h
calculator.cpp
calculatorDoc.cpp
calculatorView.cpp
CalDlg.cpp
MainFrm.cpp
res/calculator.ico
res/calculator.rc2
res/calculatorDoc.ico
res/Toolbar.bmp
참고 자료
VC++ 영진출판사
프로그램소스 연관자료
-
- 계산기 프로그램(알고리즘, 소스코드, 리포트, postfix, JNI, +-*/^ 연산)
-
- [Visual Studio 2008, C++, MFC] 계산기프로그램(메모리기능 추가)
-
- c / c++ 사칙연산 계산기 프로그램,계산기,사칙연산,c언어
-
- [C++프로그램 소스]계산기