Please Help

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Oct 2008
Posts: 6
Reputation: PPP1 is an unknown quantity at this point 
Solved Threads: 0
PPP1 PPP1 is offline Offline
Newbie Poster

Please Help

 
0
  #1
Oct 3rd, 2008
Hello,
I am little bit confuse for c and c++. All loops are same in both the languages so why they are different for each other?
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 429
Reputation: Denniz is on a distinguished road 
Solved Threads: 15
Denniz's Avatar
Denniz Denniz is offline Offline
Posting Pro in Training

Re: Please Help

 
0
  #2
Oct 3rd, 2008
C++ is the object-oriented version of C.
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 1,855
Reputation: ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all 
Solved Threads: 120
ithelp's Avatar
ithelp ithelp is offline Offline
Posting Virtuoso

Re: Please Help

 
0
  #3
Oct 3rd, 2008
C++ is better C , it supports data encapsulation , inheritance , generic programming ,etc .
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,521
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1480
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: Please Help

 
0
  #4
Oct 3rd, 2008
Originally Posted by PPP1 View Post
Hello,
I am little bit confuse for c and c++. All loops are same in both the languages so why they are different for each other?
you will find the same similarities in most computer languages and that makes it easy to learn several different languages.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 89
Reputation: bhoot_jb is on a distinguished road 
Solved Threads: 2
bhoot_jb bhoot_jb is offline Offline
Junior Poster in Training

Re: Please Help

 
0
  #5
Oct 3rd, 2008
You should rather refer to some good book inorder to remove the elementary confusions.
C++ is an object-oriented version of C.
You can also call it as an enhanced version of C (just in regard to syntax and keywords) .
However, as far as coding style matters, only certain syntactic similarities remain - such as loops. Otherwise, C++ possesses a whole new concept of data encapsulation, inheritance, generic programming, etc., which C certainly doesnt provide.
Bhoot
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 7,789
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 746
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Code Goddess

Re: Please Help

 
1
  #6
Oct 3rd, 2008
>All loops are same in both the languages so why they are different for each other?
Why is Perl different from C++? They both have a for loop with the same syntax.

1) Comparing the syntax of a single feature isn't a good way to compare languages.
2) C++ is designed to have a subset that's interchangeable with C. To a large extent, that design goal has been successful, which is why the loops in both languages are virtually identical in syntax and semantics.

>C++ is the object-oriented version of C.
That's a rather naive perspective. C++ is multi-paradigm, meaning it isn't just object oriented, or generic, or procedural, it's all of them, depending on your tastes and needs.
I'm here to prove you wrong.
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 89
Reputation: bhoot_jb is on a distinguished road 
Solved Threads: 2
bhoot_jb bhoot_jb is offline Offline
Junior Poster in Training

Re: Please Help

 
0
  #7
Oct 3rd, 2008
> C++ is a OO oriented version of C.
>> That's a rather naive perspective. C++ is multi-paradigm, meaning it isn't just object oriented, or generic, or procedural, it's all of them, depending on your tastes and needs.

You are right. I just meant to emphasize on the prime and major use of C++, which i think is OO and generic programing.
Bhoot
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 7,789
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 746
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Code Goddess

Re: Please Help

 
1
  #8
Oct 3rd, 2008
>which i think is OO and generic programing.
Bolded for emphasis. Too often people state an opinion and word it as if it were a fact. Sometimes it's intentional, sometimes not, but it's nearly always misleading.
I'm here to prove you wrong.
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 5
Reputation: skatergirl0217 is an unknown quantity at this point 
Solved Threads: 0
skatergirl0217 skatergirl0217 is offline Offline
Newbie Poster

Re: Please Help

 
0
  #9
Oct 3rd, 2008
How would you explain it to some one who knows nothing about computers because i know the difference but I have to hand in a paper that asks us what the difference is and it says you have to make it so simple that a four year old can understand so anyone have any ideas on how to get an A.
Sorry for making a bigger question out of it.
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 7,789
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 746
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Code Goddess

Re: Please Help

 
1
  #10
Oct 3rd, 2008
>it says you have to make it so simple that a four year old can understand
That's probably exaggeration, but I would say that C++ is based on C with lots of extra stuff and a few changes.
I'm here to prove you wrong.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the C++ Forum
Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC