![]() |
| | #31 | ||
| Mysterious C++ User Join Date: Oct 2007
Posts: 14,099
| Quote:
Because in some stuff C++ has an edge over C. Let us summarize some key traits of C++ and C. C++: + Much more functionality and flexibility than C. + High-level abstracts that makes it faster and easier to create certain type of code. + More beginner friendly than C. - Not as portable as C. C: + More portable than C++. - Not as much functionality as C++. - Less beginner friendly than C++. Feel free to add or disagree with certain cons/pros.
__________________ Using: Microsoft Windows™ 7 Professional (x64), Microsoft Visual Studio™ 2008 Team System I dedicated my life to helping others. This is only a small sample of what they said: "Thanks Elysia. You're a programming master! How the hell do you know every thing?" Quoted... at least once. Quote:
| ||
| Elysia is offline | |
| | #32 | |
| Jaxom's & Imriel's Dad Join Date: Aug 2006 Location: Alabama
Posts: 801
| Quote:
| |
| Kennedy is offline | |
| | #33 |
| Code Goddess Join Date: Sep 2001
Posts: 9,661
| >+ Much more functionality and flexibility than C. Since it's really a perspective thing, I'll restrain myself from disagreeing with this. ![]() >+ More beginner friendly than C. I'm not sure I'd agree with this as a blanket statement. C++ has more "magic" going on which is distinctly not beginner friendly. In terms of being able to do more right out of the gate, C++ probably is more beginner friendly, but it also requires more faith. You might want to qualify this particular pro of C++.
__________________ My best code is written with the delete key. |
| Prelude is offline | |
| | #34 |
| Jaxom's & Imriel's Dad Join Date: Aug 2006 Location: Alabama
Posts: 801
| My starter language was QBASIC (with the line numbers) -- then the "real" first language was Pascal. C was still fairly new and didn't have a widely published standard (late 80's). C++ wasn't around until much later for me. I tried it but could never get a "warm and fuzzy" about the way I/O was handled -- What the CRAP is this cout/cin thingy anyway. I found, however, that I could still use my good ole printf/scanf. Now, that I can use these in C++ is pretty cool, but, am I not still writing C code just with a .cpp extension? For me, C was VERY beginner friendly since it was the 3rd language I learned (the second was i386 assembly). C++ was a major jump for my thought processes and completely was against the way I know to do things. Also, both C and C++ are extremely portable -- I don't get why you think it isn't? > + High-level abstracts CONFUSE THE SNOT out of me. I cannot stand it. Let me deal with the trees, then I can take care of the whole forest. Don't make me just look at the forest not the trees. > + Much more functionality and flexibility than C. Pass me that crack pipe when you are done. You cannot truly believe this? Neither is more or less functional than the other. Whereas you may not be able to make C do things you want it to do, I can. On the other hand, I don't know that I could successfully write a "hello World" in C++ .It is completely a matter of choice -- this goes back to that thing of you cannot compare these two like that, nor any other language. It is purely a matter of preference. |
| Kennedy is offline | |
| | #35 | |||||||
| Mysterious C++ User Join Date: Oct 2007
Posts: 14,099
| Quote:
Now, whether you want or need it is another thing entirely. Saying that c++ does not have more flexibility and functionality than C is like saying that assembly has more functionality and flexibility than C. Quote:
Quote:
Quote:
Quote:
Quote:
Like an electric screwdriver is probably better functionality-wise than a normal screw-driver, but it does not mean it is the best tool there is. That is subjective.
__________________ Using: Microsoft Windows™ 7 Professional (x64), Microsoft Visual Studio™ 2008 Team System I dedicated my life to helping others. This is only a small sample of what they said: "Thanks Elysia. You're a programming master! How the hell do you know every thing?" Quoted... at least once. Quote:
| |||||||
| Elysia is offline | |
| | #36 | ||
| Jaxom's & Imriel's Dad Join Date: Aug 2006 Location: Alabama
Posts: 801
| Quote:
Quote:
| ||
| Kennedy is offline | |
| | #37 |
| Code Goddess Join Date: Sep 2001
Posts: 9,661
| >People, people, people. This is truth. It has more functionality and flexibility than C. Then define what you mean by "functionality", what you mean by "flexibility", and prove it. Stomping around waving your opinion and calling it truth without any substantiation isn't productive, especially when you use ambiguous terms. >Saying that c++ does not have more flexibility and functionality than C is >like saying that assembly has more functionality and flexibility than C. Actually, that makes perfect sense to me. C has the same depth and breadth as C++. Thus, they are equally functional and equally flexible. Assembly has slightly more depth than both C and C++, so it is slightly more functional but equally flexible. Next!
__________________ My best code is written with the delete key. |
| Prelude is offline | |
| | #38 | |
| Mysterious C++ User Join Date: Oct 2007
Posts: 14,099
| *shrug* Then what is the point in expanding what I mean? I will just leave it be.
__________________ Using: Microsoft Windows™ 7 Professional (x64), Microsoft Visual Studio™ 2008 Team System I dedicated my life to helping others. This is only a small sample of what they said: "Thanks Elysia. You're a programming master! How the hell do you know every thing?" Quoted... at least once. Quote:
| |
| Elysia is offline | |
| | #39 | ||
| The larch Join Date: May 2006
Posts: 3,082
| Quote:
I see C sometimes favoured by beginners, and the reason is that higher levels of abstractions are harder to get, so because of the understanding issues they'll find it easier to do things the hard way. Similarly, beginners tend to find it easier to use goto and all globals instead of structured control statements and argument passing / return values.
__________________ I might be wrong. Quote:
| ||
| anon is online now | |
| | #40 | |
| Super Moderator Join Date: Sep 2001
Posts: 4,680
| Quote:
| |
| sean is offline | |
| | #41 | |
| Mysterious C++ User Join Date: Oct 2007
Posts: 14,099
| Then you are misinterpreting my words.
__________________ Using: Microsoft Windows™ 7 Professional (x64), Microsoft Visual Studio™ 2008 Team System I dedicated my life to helping others. This is only a small sample of what they said: "Thanks Elysia. You're a programming master! How the hell do you know every thing?" Quoted... at least once. Quote:
| |
| Elysia is offline | |
| | #42 | |
| Super Moderator Join Date: Sep 2001
Posts: 4,680
| Quote:
| |
| sean is offline | |
| | #43 | |
| Super Moderator Join Date: Aug 2001
Posts: 7,472
| Quote:
__________________ If you aim at everything you will hit something but you won't know what it is. | |
| Bubba is offline | |
| | #44 | |||
| Unregistered User Join Date: Jul 2007
Posts: 925
| Quote:
Quote:
Quote:
__________________ GCC 4.4.0, Code::Blocks 8.02, Fedora 11, x64 | |||
| Yarin is offline | |
| | #45 | |||
| Mysterious C++ User Join Date: Oct 2007
Posts: 14,099
| Quote:
Quote:
Yes, you can emulate these in C, but it is not as easy as if they were natively supported. So if you do not have to invent a solution to get it working right, it might be safe to say that it is faster, usually easier and less error-prone to use them than to emulate them. Assembly supports even less of such things than C. It does not even feature high-level syntax and statements such as ifs. This is what I meant with C++ having more "features". I think of it as having more tools available at the tips of the programmer, allowing us to get things done faster. The later part is subjective, of course.
__________________ Using: Microsoft Windows™ 7 Professional (x64), Microsoft Visual Studio™ 2008 Team System I dedicated my life to helping others. This is only a small sample of what they said: "Thanks Elysia. You're a programming master! How the hell do you know every thing?" Quoted... at least once. Quote:
| |||
| Elysia is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|