SysChat is a free online computer support community. Ask questions, share resources, contribute knowledge and discuss technology. Join our growing community to access all features. Register Now!

SysChat » Software Support » Development » C++ or C?

Development

Support help and discuss software development and programming.

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 12-11-2005, 04:56 PM
Kaabi Kaabi is offline
Junior Member
 
About:
Join Date: Dec 2005
Posts: 21
Kaabi is on a distinguished road

Default 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.



Reply With Quote
  #2 (permalink)  
Old 12-11-2005, 05:00 PM
CMan CMan is offline
Member
 
About:
Join Date: Dec 2005
Location: Bay Area, CA
Posts: 90
CMan is on a distinguished road

Default


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



Reply With Quote
  #3 (permalink)  
Old 12-13-2005, 10:20 AM
Kamesh Kamesh is offline
Member
 
About:
Join Date: Dec 2005
Posts: 45
Kamesh is on a distinguished road

Default


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.



Reply With Quote
  #4 (permalink)  
Old 12-25-2005, 07:04 AM
pairbrother pairbrother is offline
Member
 
About:
Join Date: Dec 2005
Posts: 40
pairbrother is on a distinguished road

Default


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



Reply With Quote
  #5 (permalink)  
Old 03-11-2006, 12:30 PM
William_Wilson's Avatar
William_Wilson William_Wilson is offline
Moderator
 
About:
Join Date: Mar 2006
Location: Canada
Posts: 973
William_Wilson has a spectacular aura aboutWilliam_Wilson has a spectacular aura aboutWilliam_Wilson has a spectacular aura about

Default


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!



__________________

</Dream In Code>
-William. § (marvin_gohan)
Reply With Quote
  #6 (permalink)  
Old 03-15-2006, 11:10 PM
Sami's Avatar
Sami Sami is offline
Administrator
 
About:
Join Date: Jan 2006
Location: New Jersey
Posts: 804
Sami has a spectacular aura aboutSami has a spectacular aura aboutSami has a spectacular aura about

Default


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.



Reply With Quote
  #7 (permalink)  
Old 03-16-2006, 12:26 AM
William_Wilson's Avatar
William_Wilson William_Wilson is offline
Moderator
 
About:
Join Date: Mar 2006
Location: Canada
Posts: 973
William_Wilson has a spectacular aura aboutWilliam_Wilson has a spectacular aura aboutWilliam_Wilson has a spectacular aura about

Default


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!



__________________

</Dream In Code>
-William. § (marvin_gohan)
Reply With Quote
  #8 (permalink)  
Old 04-12-2006, 11:46 AM
avona avona is offline
Member
 
About:
Join Date: Mar 2006
Posts: 78
avona is on a distinguished road

Default


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



Reply With Quote
  #9 (permalink)  
Old 04-19-2006, 08:51 AM
sigs sigs is offline
Junior Member
 
About:
Join Date: Apr 2006
Posts: 27
sigs is on a distinguished road

Default


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



Reply With Quote
  #10 (permalink)  
Old 03-19-2007, 11:16 AM
ervindm ervindm is offline
Junior Member
 
About:
Join Date: Mar 2007
Posts: 12
ervindm is on a distinguished road

Default


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!



Reply With Quote
Reply





Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is on
Smilies are on
[IMG] code is on
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are on



» Ads



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