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. The Lounge
  3. Is c++ really best?

Is c++ really best?

Scheduled Pinned Locked Moved The Lounge
questionc++
36 Posts 18 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.
  • T Offline
    T Offline
    totig
    wrote on last edited by
    #1

    Hi, I am just wondering about this. Everyone you speak to says c++ is best. Is it actually, when you consider that it precompiles all code to c, before compiling? If that is true, then surely you would be able to do everything c++ can do in c. So, thinking of that, c should be faster. I am not trying to start an argument, but its just a question.

    S K L S J 7 Replies Last reply
    0
    • T totig

      Hi, I am just wondering about this. Everyone you speak to says c++ is best. Is it actually, when you consider that it precompiles all code to c, before compiling? If that is true, then surely you would be able to do everything c++ can do in c. So, thinking of that, c should be faster. I am not trying to start an argument, but its just a question.

      S Offline
      S Offline
      Shog9 0
      wrote on last edited by
      #2

      toticow wrote: Is c++ really best? Yes. toticow wrote: it precompiles all code to c, before compiling? No. toticow wrote: If that is true, then surely you would be able to do everything c++ can do in c. Yes. But then, you could also do it all in assembler, or entering the codes directly with a hex editor. Sometimes you need a bigger hammer, other times you just want one. toticow wrote: So, thinking of that, c should be faster. No. That depends partially on the compiler used, but mostly on the programmer using it. toticow wrote: am not trying to start an argument, but its just a question. Glad i was able to enlighten you. :)

      Shog9 --

      Exchanging a walk-on part in the War

      for the lead role in a Cage

      1 Reply Last reply
      0
      • T totig

        Hi, I am just wondering about this. Everyone you speak to says c++ is best. Is it actually, when you consider that it precompiles all code to c, before compiling? If that is true, then surely you would be able to do everything c++ can do in c. So, thinking of that, c should be faster. I am not trying to start an argument, but its just a question.

        K Offline
        K Offline
        Kenneth Childs
        wrote on last edited by
        #3

        What programming language is "best" is a lot like school lunch: it's all what you see it to be. Like in the school lunch, they say it's chicken parmesean, when you know full well it's the crispy chicken from yesterday w/ some melted cheese on it. You really have to look at it abstractly more than anything. If they say it's chicken parmesean, it's chicken parmesean. <---signature---> Your kid gets into Duke. You pay the tuition. That tuition goes into my checking account. My money in my checking account goes into beer, porn, and other such fun. Thank you :)

        E 1 Reply Last reply
        0
        • T totig

          Hi, I am just wondering about this. Everyone you speak to says c++ is best. Is it actually, when you consider that it precompiles all code to c, before compiling? If that is true, then surely you would be able to do everything c++ can do in c. So, thinking of that, c should be faster. I am not trying to start an argument, but its just a question.

          L Offline
          L Offline
          Loki
          wrote on last edited by
          #4

          Main diff between c and c++, is c++ is an object-oriented language. You can have inheritance, and overload methods and all the good OO stuff. Grant @ Loki

          1 Reply Last reply
          0
          • T totig

            Hi, I am just wondering about this. Everyone you speak to says c++ is best. Is it actually, when you consider that it precompiles all code to c, before compiling? If that is true, then surely you would be able to do everything c++ can do in c. So, thinking of that, c should be faster. I am not trying to start an argument, but its just a question.

            S Offline
            S Offline
            Stuart van Weele
            wrote on last edited by
            #5

            Best for what? Programming languages are tools. Pick the best tool for the job.

            A 1 Reply Last reply
            0
            • T totig

              Hi, I am just wondering about this. Everyone you speak to says c++ is best. Is it actually, when you consider that it precompiles all code to c, before compiling? If that is true, then surely you would be able to do everything c++ can do in c. So, thinking of that, c should be faster. I am not trying to start an argument, but its just a question.

              J Offline
              J Offline
              J Dunlap
              wrote on last edited by
              #6

              Well, it's a bit like asking: "Which is better: a hammer or a rubber mallet?". They are both similar, but they are useful for somewhat different jobs. HTH :)

              "Blessed are the peacemakers, for they shall be called sons of God." - Jesus
              "You must be the change you wish to see in the world." - Mahatma Gandhi

              P 1 Reply Last reply
              0
              • T totig

                Hi, I am just wondering about this. Everyone you speak to says c++ is best. Is it actually, when you consider that it precompiles all code to c, before compiling? If that is true, then surely you would be able to do everything c++ can do in c. So, thinking of that, c should be faster. I am not trying to start an argument, but its just a question.

                D Offline
                D Offline
                Daniel Turini
                wrote on last edited by
                #7

                It can't make ice-cream ;P


                Help me dominate the world - click this link and my army will grow

                A 1 Reply Last reply
                0
                • D Daniel Turini

                  It can't make ice-cream ;P


                  Help me dominate the world - click this link and my army will grow

                  A Offline
                  A Offline
                  Adam Wimsatt
                  wrote on last edited by
                  #8

                  Sure it can... CIceCream *cone = new CIceCream("chocolate"); ;) My code isn't buggy. Those are all fleatures.

                  N 1 Reply Last reply
                  0
                  • A Adam Wimsatt

                    Sure it can... CIceCream *cone = new CIceCream("chocolate"); ;) My code isn't buggy. Those are all fleatures.

                    N Offline
                    N Offline
                    Nemanja Trifunovic
                    wrote on last edited by
                    #9

                    You would want to share your ice cream, wouldn't you? boost::shared_ptr<CIceCream> cone(new CIceCream("chocolate"));

                    A T 2 Replies Last reply
                    0
                    • N Nemanja Trifunovic

                      You would want to share your ice cream, wouldn't you? boost::shared_ptr<CIceCream> cone(new CIceCream("chocolate"));

                      A Offline
                      A Offline
                      Adam Wimsatt
                      wrote on last edited by
                      #10

                      Heck no! That's my Ice Cream Private: CIceCream *cone; My code isn't buggy. Those are all fleatures.

                      J 1 Reply Last reply
                      0
                      • N Nemanja Trifunovic

                        You would want to share your ice cream, wouldn't you? boost::shared_ptr<CIceCream> cone(new CIceCream("chocolate"));

                        T Offline
                        T Offline
                        Tim Smith
                        wrote on last edited by
                        #11

                        Yeah, but the overhead costs... :) Tim Smith I'm going to patent thought. I have yet to see any prior art.

                        1 Reply Last reply
                        0
                        • K Kenneth Childs

                          What programming language is "best" is a lot like school lunch: it's all what you see it to be. Like in the school lunch, they say it's chicken parmesean, when you know full well it's the crispy chicken from yesterday w/ some melted cheese on it. You really have to look at it abstractly more than anything. If they say it's chicken parmesean, it's chicken parmesean. <---signature---> Your kid gets into Duke. You pay the tuition. That tuition goes into my checking account. My money in my checking account goes into beer, porn, and other such fun. Thank you :)

                          E Offline
                          E Offline
                          Erin
                          wrote on last edited by
                          #12

                          Ken Childs is one sexy beast. :):rose:

                          D A 2 Replies Last reply
                          0
                          • J J Dunlap

                            Well, it's a bit like asking: "Which is better: a hammer or a rubber mallet?". They are both similar, but they are useful for somewhat different jobs. HTH :)

                            "Blessed are the peacemakers, for they shall be called sons of God." - Jesus
                            "You must be the change you wish to see in the world." - Mahatma Gandhi

                            P Offline
                            P Offline
                            Paul Watson
                            wrote on last edited by
                            #13

                            JDunlap, your analogies just don't work for me. Of course a rubber mallet is better. You can whack a mole and play croquet with a rubber mallet, you can't with a hammer, so obviousl a RM is better. A Ferrari is still better than a 4x4... ;p regards, Paul Watson Bluegrass South Africa Miszou wrote: I have read the entire internet. on how boring his day was. Crikey! ain't life grand?

                            N S A 3 Replies Last reply
                            0
                            • A Adam Wimsatt

                              Heck no! That's my Ice Cream Private: CIceCream *cone; My code isn't buggy. Those are all fleatures.

                              J Offline
                              J Offline
                              J Dunlap
                              wrote on last edited by
                              #14

                              But you can share and keep it yourself, both at the same time.

                              //C#

                              private CIceCream cone = new CIceCream("chocolate");

                              public CIceCream IceCream
                              {
                              get
                              {
                              return cone.Clone();
                              }
                              }

                              "Blessed are the peacemakers, for they shall be called sons of God." - Jesus
                              "You must be the change you wish to see in the world." - Mahatma Gandhi

                              D 1 Reply Last reply
                              0
                              • P Paul Watson

                                JDunlap, your analogies just don't work for me. Of course a rubber mallet is better. You can whack a mole and play croquet with a rubber mallet, you can't with a hammer, so obviousl a RM is better. A Ferrari is still better than a 4x4... ;p regards, Paul Watson Bluegrass South Africa Miszou wrote: I have read the entire internet. on how boring his day was. Crikey! ain't life grand?

                                N Offline
                                N Offline
                                Nick Parker
                                wrote on last edited by
                                #15

                                Paul Watson wrote: A Ferrari is still better than a 4x4... Not in snow. ;P -Nick Parker

                                P 1 Reply Last reply
                                0
                                • N Nick Parker

                                  Paul Watson wrote: A Ferrari is still better than a 4x4... Not in snow. ;P -Nick Parker

                                  P Offline
                                  P Offline
                                  Paul Watson
                                  wrote on last edited by
                                  #16

                                  Which is why I suggested a 4x4 Ferrari earlier. ;) regards, Paul Watson Bluegrass South Africa Miszou wrote: I have read the entire internet. on how boring his day was. Crikey! ain't life grand?

                                  N 1 Reply Last reply
                                  0
                                  • E Erin

                                    Ken Childs is one sexy beast. :):rose:

                                    D Offline
                                    D Offline
                                    David Stone
                                    wrote on last edited by
                                    #17

                                    Welcome to CP, Erin. :) You're one of the few women to grace this site with their presence. You can spot the others by either their names (although Trollslayer [Elaine], is not so obvious until you see her name in her sig) or by their frequent use of girly language (e.g. "hon" or "awww cute") and the ever so feminine :rose: emoticon. ;) So, tell us a little bit about yourself. :) (Oh, and I must disagree with you...Ken Childs is not sexy. ;P)


                                    Hawaian shirts and shorts work too in Summer. People assume you're either a complete nut (in which case not a worthy target) or so damn good you don't need to worry about camouflage... -Anna-Jayne Metcalfe on Paintballing

                                    K E D 3 Replies Last reply
                                    0
                                    • P Paul Watson

                                      Which is why I suggested a 4x4 Ferrari earlier. ;) regards, Paul Watson Bluegrass South Africa Miszou wrote: I have read the entire internet. on how boring his day was. Crikey! ain't life grand?

                                      N Offline
                                      N Offline
                                      Nick Parker
                                      wrote on last edited by
                                      #18

                                      Paul Watson wrote: Which is why I suggested a 4x4 Ferrari earlier. That would definately get horrible gas mileage. -Nick Parker

                                      P 1 Reply Last reply
                                      0
                                      • N Nick Parker

                                        Paul Watson wrote: Which is why I suggested a 4x4 Ferrari earlier. That would definately get horrible gas mileage. -Nick Parker

                                        P Offline
                                        P Offline
                                        Paul Watson
                                        wrote on last edited by
                                        #19

                                        not that "what is the fuel consumption of this thing?" would ever come into the equation when buying a Ferrari. when I get my Enzo one day I will send you the figures. ;) regards, Paul Watson Bluegrass South Africa Miszou wrote: I have read the entire internet. on how boring his day was. Crikey! ain't life grand?

                                        1 Reply Last reply
                                        0
                                        • D David Stone

                                          Welcome to CP, Erin. :) You're one of the few women to grace this site with their presence. You can spot the others by either their names (although Trollslayer [Elaine], is not so obvious until you see her name in her sig) or by their frequent use of girly language (e.g. "hon" or "awww cute") and the ever so feminine :rose: emoticon. ;) So, tell us a little bit about yourself. :) (Oh, and I must disagree with you...Ken Childs is not sexy. ;P)


                                          Hawaian shirts and shorts work too in Summer. People assume you're either a complete nut (in which case not a worthy target) or so damn good you don't need to worry about camouflage... -Anna-Jayne Metcalfe on Paintballing

                                          K Offline
                                          K Offline
                                          Kenneth Childs
                                          wrote on last edited by
                                          #20

                                          David Stone wrote: Oh, and I must disagree with you...Ken Childs is not sexy. HEY! And just HOW would you know, David?!?! <---signature---> Your kid gets into Duke. You pay the tuition. That tuition goes into my checking account. My money in my checking account goes into beer, porn, and other such fun. Thank you :)

                                          D 1 Reply 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