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 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
                                • 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

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

                                  So you want to know more about me? I'm a college student and I plan on majoring in Criminal Justice. I'm a closet computer dork. I'm originally from New York, but I currently live in North Carolina. Anything else you wanna know just ask. By the way....how exactly would you know if Ken is sexy or not? lol

                                  A 1 Reply Last reply
                                  0
                                  • K Kenneth Childs

                                    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 Offline
                                    D Offline
                                    David Stone
                                    wrote on last edited by
                                    #22

                                    Kenneth Childs wrote: HEY! And just HOW would you know, David?!?! Okay, let's review our definitions through examples: Sexy: Kiera Knightley, Angelina Jolie, Alexis Bledel, etc. Not-Sexy: Bill Gates, Linus Torvalds, George W. Bush, Ken Childs, etc. Notice a pattern here? ;)


                                    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

                                    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?

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

                                      Paul Watson wrote: You can whack a mole and play croquet with a rubber mallet, you can't with a hammer Oh yeah? Donno 'bout u, but one whack from my 5lb sledge & i never have to see those damn moles popping up again. :rolleyes:

                                      Shog9 --

                                      Exchanging a walk-on part in the War

                                      for the lead role in a Cage

                                      P 1 Reply Last reply
                                      0
                                      • J J Dunlap

                                        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 Offline
                                        D Offline
                                        David Stone
                                        wrote on last edited by
                                        #24

                                        Better yet, you could keep yours and share it in any flavor. :)

                                        private IceCream<Flavor> cone = new IceCream<Flavor>(Chocolate);
                                        public IceCream<Flavor F> Cone
                                        {
                                        get
                                        {
                                        return cone.Clone(F);
                                        }
                                        }

                                        Keep in mind that I have no clue if this is proper generics syntax...seeing as how I have no access to Whidbey and all...:(


                                        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

                                        D 1 Reply Last reply
                                        0
                                        • S Shog9 0

                                          Paul Watson wrote: You can whack a mole and play croquet with a rubber mallet, you can't with a hammer Oh yeah? Donno 'bout u, but one whack from my 5lb sledge & i never have to see those damn moles popping up again. :rolleyes:

                                          Shog9 --

                                          Exchanging a walk-on part in the War

                                          for the lead role in a Cage

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

                                          Kinda defeats the point though, don't it? I mean, you want to just give them a slap and tickle, not crush their skulls. They can't fit that many moles in a box you know and if you keep killing them, they have to keep stopping you, emptying the box and then refilling them. Your sledge though *is* good for a bit of lettingoutfiretruckingfrustrationsfromhavingdaftclientswhowantsearchbuttonsnotonsearchformsbutsomewhereelsejustnotonthesearchformofcoursesologicalyeahright venting. 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?

                                          S 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