random truth 0 Report post Posted April 1, 2009 Do any of you here use Objective C? I am debating about learning Objective C or C++. I was wondering, is Objective C more efficient than C++, or what is the advantages of each. So I can make an educated decision. Share this post Link to post Share on other sites
truefusion 3 Report post Posted April 1, 2009 They say structs and objects are basically the same except that objects allows for private and protected members, et cetera. You'll want to have such a feature if, for example, you were to be working in a group project. Also, C++ allows for overloaded functions. I find these quite convenient and wish that every language had this ability. I've only heard bad things about C++ from C programmers, but from people that teach programming, i've seen more that are for C++. I say go for C++ just for the extra language features. Share this post Link to post Share on other sites
zakaluka 0 Report post Posted April 11, 2009 (edited) I'd say C++ because it is much more widely used. Thanks to this, the number of libraries, tutorials, books and online help is greatly improved over what is available for Objective-C. Regards,z. Edited April 13, 2009 by zakaluka (see edit history) Share this post Link to post Share on other sites
sonesay 7 Report post Posted April 11, 2009 It depends on what you intend to build I guess. I know objective C is used for programming on the OS X. You program OS X applications as well as iPhone applications on it. I have used objective c for a while but have no experience in C or C++ at all. They say Objective C is a superset of C meaning it has all the c functions plus its own. Share this post Link to post Share on other sites
rpgsearcherz 5 Report post Posted April 11, 2009 I've never heard of Objective C....Is it just C? Another name for it or is it a new language?Because if it's just C...I would vote C over C++ anyday if you want full control over how the memory is allocated and whatnot in your programs. C++ is obviously easier to use.The difference between C and C++ is like a bicycle and car. The bicycle is more efficient(due to workout and all) but is much harder to use. Share this post Link to post Share on other sites
sonesay 7 Report post Posted April 11, 2009 (edited) objective C is basically C plus more functions built on top of it. You can use c functions as well and objective c functions. That is what a superset of c means. Edited April 11, 2009 by sonesay (see edit history) Share this post Link to post Share on other sites
rpgsearcherz 5 Report post Posted April 11, 2009 objective C is basically C plus more functions built on top of it. You can use c functions as well and objective c functions. That is what a superset of c means.If all C commands still work as normal C does, it should be fine then...But if it's an "upgraded" version that uses new commands as well as old, it may not have as much control. It'd be just like taking a jump from C++ to C#. C# is much easier to use but C++ has more control. Both can use the same commands though as far as I know. The only diff is in C# you don't have to tell memory locations for arrays and stuff, it's done automatically. Share this post Link to post Share on other sites
truefusion 3 Report post Posted April 11, 2009 If all C commands still work as normal C does, it should be fine then...But if it's an "upgraded" version that uses new commands as well as old, it may not have as much control. It'd be just like taking a jump from C++ to C#. C# is much easier to use but C++ has more control. Both can use the same commands though as far as I know. The only diff is in C# you don't have to tell memory locations for arrays and stuff, it's done automatically.C# is like the Microsoft version of Java, so to speak. It may compile to bytecode, but that's not necessarily machine code—you still have to run it through a virtual machine, therefore making C++ programs perform better. Java and C# may be a bit more convenient to program in than C, Objective C or C++, and while the programs made for Java may not require you to recompile your program to be able to use it on another system, i'd still pick C++ over Java and C#. But on the topic of Objective C and C++, both of them are upgraded versions of C, meaning all C programs are basically legal Objective C and C++ programs. C++ used to have the name "C with classes"—not much of an appealing name. I prefer OOP over procedural programming, and coming from a PHP background, the C++ and PHP syntax are quite similar, so i pick C++ over the others. Share this post Link to post Share on other sites
Diffusr 0 Report post Posted September 18, 2009 C++ is an evolved version of C.Some experts say that it is good to learn C before C++, others say it's better to go straight to C++. It sounds like it makes sense to learn C first before moving onto C++ because C++ is larger and more extended than C.C is procedural whereas C++ is object-oriented and the programming is quite different. This is why some experts say it is better to learn C++ without knowing anything about C. Share this post Link to post Share on other sites
akira550 0 Report post Posted September 19, 2009 i'll suggest go to C++? you won't regret it Share this post Link to post Share on other sites