| | |
Please Help
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Oct 2008
Posts: 6
Reputation:
Solved Threads: 0
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?
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?
C++ is the object-oriented version of C.
Founder of :
Lexel Technologies Pte Ltd - SMS (TXT) Marketing software solution
My Blogs: Gooner's Sanctuary
Pet Directory and Forum: FurryTale.net
Lexel Technologies Pte Ltd - SMS (TXT) Marketing software solution
My Blogs: Gooner's Sanctuary
Pet Directory and Forum: FurryTale.net
C++ is better C , it supports data encapsulation , inheritance , generic programming ,etc .
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.
•
•
Join Date: Mar 2008
Posts: 89
Reputation:
Solved Threads: 2
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.
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
>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.
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.
•
•
Join Date: Mar 2008
Posts: 89
Reputation:
Solved Threads: 2
> 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.
>> 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
•
•
Join Date: Oct 2008
Posts: 5
Reputation:
Solved Threads: 0
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.
Sorry for making a bigger question out of it.
![]() |
Other Threads in the C++ Forum
- Previous Thread: Ask about function
- Next Thread: Please help if you can i am stuck!
| Thread Tools | Search this Thread |
Tag cloud for C++
add api array arrays based beginner binary bmp c++ c/c++ calculator char class classes code compile compiler console conversion count data delete deploy desktop directshow dll download dynamic encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp iamthwee ifstream input int integer java lib library linkedlist linker linux list loop looping loops map math matrix memory microsoft newbie news number output pointer problem program programming project python random read recursion recursive return simple string strings studio system temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock wordfrequency wxwidgets






