| |
|
Welcome to KnowledgeSutra - Dear Guest | |
Objective C Or C++?
Started by random truth, Apr 01 2009 03:40 AM
9 replies to this topic
#2
Posted 01 April 2009 - 05:30 AM
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.
#4
Posted 11 April 2009 - 07:11 AM
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.
#5
Posted 11 April 2009 - 07:22 AM
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.
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.
#7
Posted 11 April 2009 - 08:44 AM
sonesay, on Apr 11 2009, 02:32 AM, said:
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.
#8
Posted 11 April 2009 - 04:15 PM
rpgsearcherz, on Apr 11 2009, 04:44 AM, said:
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.
#9
Posted 18 September 2009 - 06:51 PM
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.
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.
Reply to this topic

1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users















