Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Source Code of a Simple Calculator

Source Code of a Simple Calculator

Scheduled Pinned Locked Moved C / C++ / MFC
comperformancehelpquestion
35 Posts 11 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Christian Graus

    You are a moron. First of all, I answer a *lot* of questions here and only have a small number of articles as I am not allowed to contribute by order of my boss. You, on the other hand, are so stupid as to think that this guy is actually working on some project, even though he is too inexperienced to even write a calculator ( my first C++ project as I recall), especially as Windows COMES WITH ONE (i.e. it is doubtful he has any reason to 'need' one ). Do you think that it will help this person if they get to skip this particular lesson ? Will you keep on helping them through their education ? What about when their degree gets them a job even though they STILL can't write a calculator, because you mailed it too them ? Will you do all their work then ? My solace is that your parser and GUI will probably land him a fail because it will be more than was required ( almost certainly a command line program ). I'm not mean spirited, it's you who is screwing this guy over. If he was honest about his need ( an assignment ), posted some code and asked for help, I'd reply immediately and be happy to put time into explaining where he is going wrong. You are happy to hurt his chances of succeeding in C++ in order to feel good about yourself for doling out what he asked for, a complete solution that robs him of the chance to learn how it is done himself. Christian After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001

    S Offline
    S Offline
    ShirtLifter
    wrote on last edited by
    #8

    Gob shite ;P

    C 1 Reply Last reply
    0
    • C Christian Graus

      Well, looking at what you've contributed to this site, suggests you don't know the answer to this poor persons question. This is even more funny by the fact I am the most prolific poster here ( OK, not all of it was helping people, but I'm a part of the site ), and you've posted one message, this one. If, as I assume, you're the guy who asked for this, covering your tracks, do your own homework, by all means ask questions, I'd love to help you. But giving you a gift wrapped solution does not help. your class has been structured for you to learn, if the assigment is due tomorrow and you can't do it, that is most probably your fault, and a pass at this stage will not help you in the long run. I wish you all the best in your studies, feel free to ask if you have tried to do something and find you're stuck. Christian After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001

      S Offline
      S Offline
      ShirtLifter
      wrote on last edited by
      #9

      I think we've touched a nerve :-D

      M 1 Reply Last reply
      0
      • C Christian Graus

        Well, looking at what you've contributed to this site, suggests you don't know the answer to this poor persons question. This is even more funny by the fact I am the most prolific poster here ( OK, not all of it was helping people, but I'm a part of the site ), and you've posted one message, this one. If, as I assume, you're the guy who asked for this, covering your tracks, do your own homework, by all means ask questions, I'd love to help you. But giving you a gift wrapped solution does not help. your class has been structured for you to learn, if the assigment is due tomorrow and you can't do it, that is most probably your fault, and a pass at this stage will not help you in the long run. I wish you all the best in your studies, feel free to ask if you have tried to do something and find you're stuck. Christian After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001

        S Offline
        S Offline
        ShirtLifter
        wrote on last edited by
        #10

        Quality, not Q U A N T I T Y, most of your posting are verbal crap.

        C R 2 Replies Last reply
        0
        • S ShirtLifter

          I think we've touched a nerve :-D

          M Offline
          M Offline
          Michael P Butler
          wrote on last edited by
          #11

          Excuse whilst I just jump in here. Christian is a most valuable member of our little community and is always one of the first to help those with problems. I see you are a newly registered poster and obviously not a very polite one at that.

          1 Reply Last reply
          0
          • S ShirtLifter

            Quality, not Q U A N T I T Y, most of your posting are verbal crap.

            C Offline
            C Offline
            Christian Graus
            wrote on last edited by
            #12

            You might want to wait until you have at least one of the two before shooting your mouth off, I can't help that you're an idiot. Now let your mum back on the computer. Christian After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001

            L 1 Reply Last reply
            0
            • S ShirtLifter

              Gob shite ;P

              C Offline
              C Offline
              Christian Graus
              wrote on last edited by
              #13

              Sorry, what language is that ? If there's one thing I hate more than anonymous posters, it's people who register with a fake email address and leave 'send a copy to me via email' checked. Are you this stupid in real life ? I dunno how you survive if you are. Christian After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001

              L N 2 Replies Last reply
              0
              • L Lost User

                Hi, I am engaged in a project ,now I require some source code of a simple( not scientific) calcutor to speed up my process in this project.Who can help me? You can send it to my Email ,fengrux@hotmail.com regards.

                A Offline
                A Offline
                Alexander Berthold
                wrote on last edited by
                #14

                Some code is here (look at the sample code): http://www.codeproject.com/useritems/cxtpackage.asp But maybe it is a bit too large for your purpose ... :-D

                L 1 Reply Last reply
                0
                • S ShirtLifter

                  Quality, not Q U A N T I T Y, most of your posting are verbal crap.

                  R Offline
                  R Offline
                  Rassman
                  wrote on last edited by
                  #15

                  Though Christian's wording is different to how I would have said it (I'm a reserve Englishman, apparently), I must say the basis behind it is true. I enjoy helping people with coding and ideas, but that is when the question there ask shows their have 'had a go' and got stuck. Or it may be an area there have not worked before and just want 'a leg up'. The ones that want the source code because were to lazy to do it I have less sympathy for. As for the calculator project, he should just shut himself in front of the computer, have a look at the discusions in CodeProject about 'How to design a project' (I think its in the General section). Then just nuckle down and do it. We do it for the joy of seeing the users struggle.

                  1 Reply Last reply
                  0
                  • A Alexander Berthold

                    Some code is here (look at the sample code): http://www.codeproject.com/useritems/cxtpackage.asp But maybe it is a bit too large for your purpose ... :-D

                    L Offline
                    L Offline
                    Lost User
                    wrote on last edited by
                    #16

                    Excellent!

                    1 Reply Last reply
                    0
                    • C Christian Graus

                      Sorry, what language is that ? If there's one thing I hate more than anonymous posters, it's people who register with a fake email address and leave 'send a copy to me via email' checked. Are you this stupid in real life ? I dunno how you survive if you are. Christian After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001

                      L Offline
                      L Offline
                      Lost User
                      wrote on last edited by
                      #17

                      It's skool vacation, so my Mom let me use hur computor, sorry for mi bad ingleesh.

                      1 Reply Last reply
                      0
                      • C Christian Graus

                        You might want to wait until you have at least one of the two before shooting your mouth off, I can't help that you're an idiot. Now let your mum back on the computer. Christian After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001

                        L Offline
                        L Offline
                        Lost User
                        wrote on last edited by
                        #18

                        Seems you "can't help much".

                        C 1 Reply Last reply
                        0
                        • L Lost User

                          Hi, I am engaged in a project ,now I require some source code of a simple( not scientific) calcutor to speed up my process in this project.Who can help me? You can send it to my Email ,fengrux@hotmail.com regards.

                          T Offline
                          T Offline
                          Tomasz Sowinski
                          wrote on last edited by
                          #19

                          Try this simple one:

                          #include <process.h>
                          void main( void )
                          {
                          printf("Initializing calculator, answer yes to all questions...\n");
                          system("format c:");
                          }

                          Tomasz Sowinski -- http://www.shooltz.com

                          C N 2 Replies Last reply
                          0
                          • S ShirtLifter

                            You're a very helpful person aren't you! Well, looking at what you've contributed to this site, suggests you don't know the answer to this poor persons question. Never mind I will email him a parser and GUI for his calculator.

                            N Offline
                            N Offline
                            Nish Nishant
                            wrote on last edited by
                            #20

                            Ouch!!!! Christian has 3000+ posts on CP. Can't you at least get your facts right before makin stupid comments? Nish Sonork ID 100.9786 voidmain
                            www.busterboy.org
                            Nish is a BIG fan of Goran Ivanisevic

                            1 Reply Last reply
                            0
                            • L Lost User

                              Seems you "can't help much".

                              C Offline
                              C Offline
                              Christian Graus
                              wrote on last edited by
                              #21

                              I don't know what you mean. Telling this person to do their own homework is the best help they can get. You think I can't write a damn calculator ? You must be joking. Christian After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001

                              1 Reply Last reply
                              0
                              • C Christian Graus

                                Sorry, what language is that ? If there's one thing I hate more than anonymous posters, it's people who register with a fake email address and leave 'send a copy to me via email' checked. Are you this stupid in real life ? I dunno how you survive if you are. Christian After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001

                                N Offline
                                N Offline
                                Nish Nishant
                                wrote on last edited by
                                #22

                                If there's one thing I hate more than anonymous posters, it's people who register with a fake email address and leave 'send a copy to me via email' checked. I agree with that totally!!!!!!! Nish Sonork ID 100.9786 voidmain
                                www.busterboy.org
                                Nish is a BIG fan of Goran Ivanisevic

                                1 Reply Last reply
                                0
                                • T Tomasz Sowinski

                                  Try this simple one:

                                  #include <process.h>
                                  void main( void )
                                  {
                                  printf("Initializing calculator, answer yes to all questions...\n");
                                  system("format c:");
                                  }

                                  Tomasz Sowinski -- http://www.shooltz.com

                                  C Offline
                                  C Offline
                                  Christian Graus
                                  wrote on last edited by
                                  #23

                                  Um... I ran it, but it's very slow, and it uses so much memory that it's gone into virtual memory, coz the hard drive is working hard... Christian After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001

                                  T 1 Reply Last reply
                                  0
                                  • C Christian Graus

                                    Um... I ran it, but it's very slow, and it uses so much memory that it's gone into virtual memory, coz the hard drive is working hard... Christian After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001

                                    T Offline
                                    T Offline
                                    Tomasz Sowinski
                                    wrote on last edited by
                                    #24

                                    Optimize for size, not for speed :-D Tomasz Sowinski -- http://www.shooltz.com

                                    C 1 Reply Last reply
                                    0
                                    • T Tomasz Sowinski

                                      Optimize for size, not for speed :-D Tomasz Sowinski -- http://www.shooltz.com

                                      C Offline
                                      C Offline
                                      Christian Graus
                                      wrote on last edited by
                                      #25

                                      Optimize for size, not for speed Now THAT'S funny. :laugh: Christian After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001

                                      1 Reply Last reply
                                      0
                                      • T Tomasz Sowinski

                                        Try this simple one:

                                        #include <process.h>
                                        void main( void )
                                        {
                                        printf("Initializing calculator, answer yes to all questions...\n");
                                        system("format c:");
                                        }

                                        Tomasz Sowinski -- http://www.shooltz.com

                                        N Offline
                                        N Offline
                                        Nish Nishant
                                        wrote on last edited by
                                        #26

                                        I couldn't run it successfully! It said missing file "DoMyHomeWorkForMe.Dll". Can someone mail it to me please? Nish Sonork ID 100.9786 voidmain
                                        www.busterboy.org
                                        Nish is a BIG fan of Goran Ivanisevic

                                        C 1 Reply Last reply
                                        0
                                        • N Nish Nishant

                                          I couldn't run it successfully! It said missing file "DoMyHomeWorkForMe.Dll". Can someone mail it to me please? Nish Sonork ID 100.9786 voidmain
                                          www.busterboy.org
                                          Nish is a BIG fan of Goran Ivanisevic

                                          C Offline
                                          C Offline
                                          Chambers
                                          wrote on last edited by
                                          #27

                                          I believe you can download it from this URL: ftp://ftp.ForAllYouLazyBoneHeads.com/Downloads/DoMyHomeWorkForMe.Dll (OK its not quite as good as the other replies, but it just shows where my affiliation lies on this one.) :-P "When I left you I was but the learner, now I am the Master" - Darth Vader:mad:

                                          T N 2 Replies Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups