SysChat

SysChat (http://www.syschat.com/forum.php)
-   Development (http://www.syschat.com/software-support/development/)
-   -   C++ or C? (http://www.syschat.com/c-or-c-40.html)

Kaabi 12-11-2005 04:56 PM

C++ or C?
 
What is the difference between those two programming languages? I've looked at both of them, and it seems they are basically the same, except C looked a little more complicated. I know that C++ has object oriented programming, but I'm not sure if that is a component of C. Is there anything that you can do with C++ that you can't do with C, and vice versa? I'm just thinking about learning one of them and I want to know which one I should try.

CMan 12-11-2005 05:00 PM

I dont know too much about the diffrences between the two languages other than C++ has more OOP (Object Oriented Programming). If you are going to learn C++, you should use C++.Net - which is a microsoft technology and developing program. I think they offer a free version of it on their site, just search around. C++ is a great language to learn and is more popular than C.

-C

Kamesh 12-13-2005 10:20 AM

C++ is an enhanced version of the C language. C++ includes everything that is part of C and adds support for object-oriented programming (OOP). In addition, C++ also contains many improvements and features that make it a "better C", independent of object oriented programming. C++ is actually an extendible language since we can define new types in such a way that they act just like the predefined types which are part of the standard language.

If you just use C++ as a better C, you will not be using all of its power. Like any quality tool, C++ must be used the way it was designed to be used to exploit its richness. Some of the new features include encapsulation, inline function calls, overloading operators, inheritance and polymorphism which are not present in C scripting.

pairbrother 12-25-2005 07:04 AM

Yep, C++ is a superset of C langauge, not vice versa ;)
After C, there came a language called C+, which was very soon replaced by C++, the ++ added to C, is actually the increment operator which is available in the C language. So, C++ in a way meant the next incremental version of C.
The basic structure of both the language remains the same, even Java follows the same basic syntax.
The main difference between C and C++ was ofcourse the Object-Oriented part :P

William_Wilson 03-11-2006 12:30 PM

C++ is definatly the way to go, even if you don't use the more advanced features right away, atleast you'll get a feel for the language. Trust me cout<< is much easier than fprint... etc, lol. The real question here may be C++ or C#. There are few differences between these languages that are of extreme concern, but they each have there place. none-the-less good question kaabi!

Sami 03-15-2006 11:10 PM

Just wanted to share nice article I found about "What Programming Languages You Should Actually Care to Learn"

This is a tour of popular languages. It includes C, C++, Lisp, Java, Perl, Ruby, and Python.

William_Wilson 03-16-2006 12:26 AM

EXCELLENT FIND SAMI!!!
and i must agree, i love the MI of C++, but i find myself cursing much more when i write then i do in Java, lol.
Currently in the process of learning Ruby... when i have time between classes. I don't mind knowing all the 'exploded whale' languages, but it's nice to know that someone.. someone who's opinion actually matters feels the same way i do about a couple languages :)
-Plan to read all the articles mention in this one as well, and i suggest the same for any programmer!

avona 04-12-2006 11:46 AM

C++ is advanced version of c, the main difference exist in the programming style where c is an structured programming language
C++ is object oriented programming language, which supports data encapsulation, inheritance and many other features, which are absent in basic C language

sigs 04-19-2006 08:51 AM

i can share some of the differences between c and c++. c++ is mainly object oriented programming whereas C is procedure oriented programming. C++ lays emphasis on objects wheres C emphasises on functions. its better to learn C because C++ has come from C and most of the companies ask for C if u apply to any company as a software engineer

ervindm 03-19-2007 11:16 AM

It would be good if you know first C and learn C++ later.

If your planning to develop software on unix and linux, there are lots of sources on C Language. (Procedural, simple but powerful)

And C++ is great on developing big applications on Windows and Linux platform. (Object Oriented, powerful but confusing if your teammate has used a lot of unnecessary pointers and casting)

Thanks!


All times are GMT -4. The time now is 06:37 AM.


Copyright © 2005-2013 SysChat.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54