Is c++ really best?
-
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.
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 -
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.
-
Sure it can...
CIceCream *cone = new CIceCream("chocolate");
;) My code isn't buggy. Those are all fleatures. -
Sure it can...
CIceCream *cone = new CIceCream("chocolate");
;) My code isn't buggy. Those are all fleatures.You would want to share your ice cream, wouldn't you?
boost::shared_ptr<CIceCream> cone(new CIceCream("chocolate"));
-
You would want to share your ice cream, wouldn't you?
boost::shared_ptr<CIceCream> cone(new CIceCream("chocolate"));
Heck no! That's my Ice Cream
Private: CIceCream *cone;
My code isn't buggy. Those are all fleatures. -
You would want to share your ice cream, wouldn't you?
boost::shared_ptr<CIceCream> cone(new CIceCream("chocolate"));
-
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 :)
-
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 GandhiJDunlap, 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?
-
Heck no! That's my Ice Cream
Private: CIceCream *cone;
My code isn't buggy. Those are all fleatures.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 -
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?
Paul Watson wrote: A Ferrari is still better than a 4x4... Not in snow. ;P -Nick Parker
-
Paul Watson wrote: A Ferrari is still better than a 4x4... Not in snow. ;P -Nick Parker
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?
-
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
-
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?
Paul Watson wrote: Which is why I suggested a 4x4 Ferrari earlier. That would definately get horrible gas mileage. -Nick Parker
-
Paul Watson wrote: Which is why I suggested a 4x4 Ferrari earlier. That would definately get horrible gas mileage. -Nick Parker
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?
-
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
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 :)
-
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
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
-
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 :)
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
-
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?
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
-
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 GandhiBetter 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
-
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
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?