Click here to Skip to main content
Click here to Skip to main content

Calculator

, 9 Jun 2003
Rate this:
Please Sign up or sign in to vote.
Calculator using MFC, Dialog based application.

Sample screenshot

Introduction

This is a scientific calculator used for ordinary and scientific calculations. It is just like the Windows Calculator along with source code. There is one function behind each button. It uses built in functions of library for sin, cos, tan, xor, or, and AND. It is very simple to understand, so there is nothing complex to be explained!!

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Tahir Naeem

Unknown
No Biography provided

Comments and Discussions

 
GeneralRe: Nice! PinmemberTahir Naeem4-Jun-03 1:45 
Generalfive PinmemberBogdan Rechi3-Dec-02 1:55 
GeneralRe: five PinmemberTahir Naeem2-Feb-03 9:32 
GeneralRe: five PinmemberShahzad Khan4-Jun-03 6:32 
I just gave you another '5' for your enthusiasm and the ability to produce a workable program. You can use better file names/class names and use proper conventions naming the resource identifiers for example.
 
Just a thought, when I write my first calculator program, I was not not happy at that time with so many functions I have to add for every button. I liked to write concise code. I used ON_CONTROL_RANGE to write a single function for all the numberical buttons and used their labeled text to find out what is pressed. You don't need to do it that way but sometimes exercize like becomes a good programming lessons. At least it makes it a little more challenging to wrok on.
 
Shahzad
GeneralNo article Pinmemberdog_spawn4-Jun-03 16:25 
Generalsome tips PinmemberAndreas Saurwein3-Dec-02 1:00 
GeneralRe: some tips PinmemberTahir Naeem2-Feb-03 9:33 
GeneralRe: some tips PinmemberAndreas Saurwein2-Feb-03 16:06 
GeneralRe: some tips Pinmemberdog_spawn4-Jun-03 9:19 
Generalouch... PinmemberEllery4-Jun-03 13:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.141223.1 | Last Updated 10 Jun 2003
Article Copyright 2002 by Tahir Naeem
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid