![]() |
| | #1 |
| Registered User Join Date: May 2009
Posts: 25
| New here, just sayin 'hi' I will probably stop in with some stupid questions once in a while, perhaps the occasional smart question, and just discussion. I'm currently taking programming classes at a community college. I'm taking regular beginning "c" right now, and am trying to decide whether to take advanced "c" or go right into C++. I want to have a good grasp of the procedural language before going to the OOP stuff, even though "c" programming is all but dead. I dunno.. I also work with autocad and use (a very small amount) of visual basic and (alot) of LISP language. anyways, thanks, argv. |
| argv is offline | |
| | #2 | |
| int x = *((int *) NULL); Join Date: Jul 2003 Location: Banks of the River Styx
Posts: 902
| Welcome to the boards. Quote:
Many libraries out there are written completely in C as well.
__________________ long time; /* know C? */ Unprecedented performance: Nothing ever ran this slow before. Any sufficiently advanced bug is indistinguishable from a feature. Real Programmers confuse Halloween and Christmas, because dec 25 == oct 31. The best way to accelerate an IBM is at 9.8 m/s/s. recursion (re - cur' - zhun) n. 1. (see recursion) | |
| Cactus_Hugger is offline | |
| | #3 |
| Kernel hacker Join Date: Jul 2007 Location: Farncombe, Surrey, England
Posts: 15,686
| Welcome to CBoard. I don't agree that C is dead. It may not be the language of the future, but C I have been working on commercial C code written in the last year or two. A lot of driver-code for all sorts of OS's is written in C. And the company I work for produces an embedded C++ OS - the reason I work in C more than C++ is that the drivers for graphics devices in the embedded systems are often written to work in several different OS's, and thus written in C rather than C++. Whilst the process of getting the job done is a bit different between C++ and C, there is also a lot of commonality. So learning C first and then going C++ is certainly not a waste of effort. -- Mats
__________________ Compilers can produce warnings - make the compiler programmers happy: Use them! Please don't PM me for help - and no, I don't do help over instant messengers. |
| matsp is offline | |
| | #4 |
| critical genius Join Date: Jul 2008 Location: SE Queens
Posts: 5,158
| The linux kernel: C The Perl interpreter, and AFAIK *most* scripting languages: C openGL: C and as I noticed today, directX: C [correction, directX is MS-COM, not C] Rumour has it the *fastest* *most efficient* language: C But I am kind of a charlatan who intends to learn C++...later, maybe. For what it's worth, I would say follow your interests. Also (somebody correct me if I am wrong), I believe most embedded programming is probably in C. Which if you think about what that means, it would be very far from "dead". In any case, hi argv, cboard is the best website on the internet -- congratulations. Last edited by MK27; 05-25-2009 at 07:31 AM. |
| MK27 is offline | |
| | #5 |
| Kernel hacker Join Date: Jul 2007 Location: Farncombe, Surrey, England
Posts: 15,686
| The C is faster than C++ is a myth. Most of the time this comes about from inexperienced programmers writing poor code (e.g. passing large class objects by value, which means the structure gets copied when the function is called). In C, the only way to copy a large amount of data when calling a function is by passing large structs by value. C++ has many more possibilities, since C++ also allows complex classes as well as the old-fashioned struct types. C++ is also a much richer language, so there is more room for getting it wrong. But given sufficient skill in the programmer, there should be no or littel difference between C and C++ - and in some cases, C++ is actually able to solve the problem in a very neat way. -- Mats
__________________ Compilers can produce warnings - make the compiler programmers happy: Use them! Please don't PM me for help - and no, I don't do help over instant messengers. |
| matsp is offline | |
| | #6 |
| In my head Join Date: Dec 2008 Location: In my head
Posts: 327
| Welcome to the forum, argv!
__________________ M$ rules! *Turns towards Redmond and bows* |
| happyclown is offline | |
| | #7 |
| and the hat of sweating Join Date: Aug 2007 Location: Toronto, ON
Posts: 3,275
| Try comparing the speed of qsort() to std::sort() and see which one wins.
__________________ "I am probably the laziest programmer on the planet, a fact with which anyone who has ever seen my code will agree." - esbo, 11/15/2008 |
| cpjust is offline | |
| | #8 | |
| critical genius Join Date: Jul 2008 Location: SE Queens
Posts: 5,158
| Quote:
I would imagine the essence of speed is in the compiler, not obscure add on libraries. Last edited by MK27; 05-25-2009 at 08:03 AM. | |
| MK27 is offline | |
| | #9 | |
| Mysterious C++ User Join Date: Oct 2007
Posts: 14,781
| Also, DirectX is not C. It's COM.
__________________ 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 | |
| | #10 |
| Hail to the king, baby. Join Date: Oct 2008 Location: Faroe Islands
Posts: 718
| I heard they are working on and have made some progress on making the DirectX code into C++ code, dunno if this is true tho... And to the topic starter's question, I'll always suggest C++, but I'm not one of the clever ones so I dunno what's best for you
__________________ Currently research OpenGL |
| Akkernight is offline | |
| | #11 | |
| Registered User Join Date: May 2009
Posts: 25
| Quote:
| |
| argv is offline | |
| | #12 | |
| Registered User Join Date: May 2009
Posts: 25
| sweet Quote:
The only thing that is NOT good about C, is obviously the lack of OOP concept. I can use C++ libraies at my job to control autocad, but can't with C unfortunately. Thats all I'm saying I guess. | |
| argv is offline | |
| | #13 | |
| Registered User Join Date: May 2009
Posts: 25
| nice name Quote:
| |
| argv is offline | |
| | #14 |
| Banned Join Date: Mar 2009
Posts: 533
| Welcome! have you read your SICP today?
__________________ ╔╗╔══╦╗ ║║║╔╗║║ ║╚╣╚╝║╚╗ ╚═╩══╩═╝ |
| ಠ_ಠ is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|