User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C++ section within the Software Development category of DaniWeb, a massive community of 397,773 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,537 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C++ advertiser:
Views: 1263 | Replies: 5
Reply
Join Date: Aug 2003
Location: Austin, TX
Posts: 117
Reputation: subtronic is an unknown quantity at this point 
Rep Power: 6
Solved Threads: 0
subtronic's Avatar
subtronic subtronic is offline Offline
Junior Poster

Lumping C and C++ together..

  #1  
May 6th, 2005
These two languages, for the most part, are completely different; especially now. From culture to paradigm. So let's get a seperate C forum going.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: May 2005
Location: Wellington, New Zealand
Posts: 182
Reputation: alpha_foobar is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 3
alpha_foobar's Avatar
alpha_foobar alpha_foobar is offline Offline
Junior Poster

Re: Lumping C and C++ together..

  #2  
May 6th, 2005
I'd say C/C++ are different in culture and paradigm.... But I'd not say they are completely different.. for one if you programme in C you typically use a compiler or IDE that also fully supports C++... essentially allowing your code to be a mixture of C and C++ if you want to... and sometimes even if you don't.

And a difference in paradigm is not really specific to a language... you can programme OO in C and likewise you can programme procedurally in C++.
Reply With Quote  
Join Date: Aug 2003
Location: Austin, TX
Posts: 117
Reputation: subtronic is an unknown quantity at this point 
Rep Power: 6
Solved Threads: 0
subtronic's Avatar
subtronic subtronic is offline Offline
Junior Poster

Re: Lumping C and C++ together..

  #3  
May 6th, 2005
[quote=alpha_foobar]I'd say C/C++ are different in culture and paradigm.... But I'd not say they are completely different.. for one if you programme in C you typically use a compiler or IDE that also fully supports C++... essentially allowing your code to be a mixture of C and C++ if you want to... and sometimes even if you don't.
[quote]

Mixing C with C++ code is generally frowned upon. I really don't want to argue and split hairs.

And a difference in paradigm is not really specific to a language... you can programme OO in C and likewise you can programme procedurally in C++.

C was _designed_ as a procedural language, C++ was _designed_ as an [pseudo] object-oriented language. They are fundamentally different in their higher-level approach.
Reply With Quote  
Join Date: May 2005
Location: Wellington, New Zealand
Posts: 182
Reputation: alpha_foobar is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 3
alpha_foobar's Avatar
alpha_foobar alpha_foobar is offline Offline
Junior Poster

Re: Lumping C and C++ together..

  #4  
May 6th, 2005
Sure, they are designed with a different paradigm in mind... but it doesn't necesarily make them completely different.

Alot of C++ source code thats around looks exactly like C... and most of the tips and tricks that apply to C++ also apply to C...
Reply With Quote  
Join Date: Sep 2004
Posts: 6,050
Reputation: Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of 
Rep Power: 26
Solved Threads: 416
Super Moderator
Narue's Avatar
Narue Narue is offline Offline
Expert Meanie

Re: Lumping C and C++ together..

  #5  
May 6th, 2005
Allow me to paraphrase and offer an official response.

>"C and C++ are different languages"
Yes they are. Properly written C will likely break when compiled as C++ for any non-trivial program, and properly written C++ is barely recognizable as "something like" C.

>"Most C++ looks like C"
Yes, but only because most C++ isn't written using the full capabilities of the language. You'd be surprised how many people write C using C++. The result is less than optimal because it wastes most of C++'s power and flexibility.

>"C++ tricks will usually work in C"
This is iffy. C++ tricks can be made to work in C, but the useful ones require a lot of work and ugliness. C tricks, on the other hand, can generally be used successfully in C++, but they are almost always inappropriate.

Official response to splitting the forums:

I don't see any need at this point to split the C/C++ forum into separate C and C++ forums. We don't get enough C questions to warrant such an action. In other words, there's not enough obvious confusion because most questions are focused on C++ and not C. Those that are focused on C typically make it clear through code or comment.

A common drawback to separating C and C++ forums is that many people don't know the difference between the two languages and will pick a forum at random, or cross-post to both, thus defeating the purpose of splitting the forums in the first place.

To get the general feeling on this issue, I'll start a poll and see what everyone thinks, because you do make legitimate points.
Member of: Beautiful Code Club.
Reply With Quote  
Join Date: Aug 2003
Location: Austin, TX
Posts: 117
Reputation: subtronic is an unknown quantity at this point 
Rep Power: 6
Solved Threads: 0
subtronic's Avatar
subtronic subtronic is offline Offline
Junior Poster

Re: Lumping C and C++ together..

  #6  
May 6th, 2005
Originally Posted by Narue
To get the general feeling on this issue, I'll start a poll and see what everyone thinks, because you do make legitimate points.

Cool. And while the poll is going, I'll learn to use bbCode *doh*
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb C++ Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the C++ Forum

All times are GMT -4. The time now is 4:34 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC