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

Calculator

By , 9 Jun 2003
 

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

About the Author

Tahir Naeem
Business Analyst
Germany Germany
Member
Tahir Naeem is a Business Analyst at a Software Company in Germany.
 
Presently he is working in the area of Business Intelligence.

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
GeneralRe: mouahahahmemberTahir Naeem7 Oct '04 - 2:50 
About what ?Confused | :confused:
 

 
Poke tongue | ;-P
 
Tahir
GeneralRe: mouahahahmembertoxcct7 Oct '04 - 4:10 
let it over, you don't have enough humour to understand...
 

TOXCCT >>> GEII power


GeneralRe: mouahahahmemberSalman_Ahmed10 Nov '04 - 20:46 
So comploex Humour !!Suspicious | :suss:
 
Tahir
Generalgood thingmemberFede_Ita7411 Jun '03 - 20:24 
It's good but the controls are a few desordered.
Do you not use radians angles?
Thanks, Federico.
GeneralRe: good thingmemberTahir Naeem9 Jul '03 - 20:36 
I have used radians but have converted them into Degree's.
 
Tahir
QuestionWhat's the point in this?memberWREY10 Jun '03 - 20:40 
void CDialog_basedDlg::OnEqual() 
{
   if(st2 == 0)
   {
       UpdateData(TRUE);
       m_op2 = m_num;
   }
   else
   {
       UpdateData(TRUE);
       m_op2 = m_num;
   }
======================================
 
If you meant the statements for one of the conditional result to be something of a placeholder, then a simple comment in that place denoting it to be such, would have been better than duplicating code.
 
OTOH, if you meant for the "else" portion to be FALSE, then your sloppiness is going to get you in a lot of trouble in the days and years ahead.
 
You have some good ideas, but you need to pay more attention to your work.
 
Hmmm | :|
 
William
 
Fortes in fide et opere!
AnswerRe: What's the point in this?memberTahir Naeem11 Jun '03 - 9:42 
yea ! you have rightly pointed out the useless statement .Actually there was a problom in its continous multiplication and addition , i.e like 2+2+2+2 etc .then it was checking the state of the equal button . When i fixed that , i forgot to remove that !!!!
Poke tongue | ;-P Laugh | :laugh:
 
Tahir
QuestionWhat was updated???memberfifi10 Jun '03 - 14:42 
So, what did you update?
 
Confused | :confused: fifi Confused | :confused:
 
If god wanted you to use a bow and arrows he wouldn't have invented assault weapons!
 

AnswerRe: What was updated???memberTahir Naeem11 Jun '03 - 9:33 
Well, there were some probloms in the calculations like simultanous multiplication and addition . I have fixed that probloms by setting thier flags .

 
Tahir
GeneralWOWmemberSledgeHammer5 Jun '03 - 0:36 
and now try calc.exe (This ones actually DOC-U-MENTED)

 
To iterate is human, to recurse is devine.

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

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