Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » What are the advantages of C++?
What are the advantages of C++? [message #1773457] Thu, 28 September 2017 05:30 Go to next message
Mark David is currently offline Mark DavidFriend
Messages: 1
Registered: September 2017
Location: Delhi
Junior Member
Hello friends i want to Know What are the advantages of C++?
Re: What are the advantages of C++? [message #1773462 is a reply to message #1773457] Thu, 28 September 2017 07:33 Go to previous messageGo to next message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
Besides being off-topic and inviting subjective responses, this is actually the wrong question.

If C++ were the only language available, there would be no advantages as they only exist in comparison.
What you really should be asking is: given a specific task at hand (whatever it might be) what does C++ do for me compared to say C or Java or Perl?
IOW, how does it help one meet current requirements?
This is the core of System Engineering: locate what is specifically needed; list solutions ; and somehow decide which solution is best.

Your question isn't much different than asking what the advantages of a Land Rover are without specifying what you are trying to do. As an in-store shopping cart it sucks.

If you want to know what some of the features of C++ might be, compared to say C,
Search "advantages of C++ over C" and "features of C++ vs C".
Here;s one: https://www.invensis.net/blog/it/benefits-of-c-c-plus-plus-over-other-programming-languages/
But do understand that the "benefits" are merely opinions.
It really depends on what you need to do.
If they aren't much help then the "benefits" are superfluous to the task at hand.

Re: What are the advantages of C++? [message #1774066 is a reply to message #1773457] Tue, 10 October 2017 06:58 Go to previous messageGo to next message
Eclipse UserFriend
1. Portable language (writing a program irrespective of operating system as well as Hardware)

2. Low-level language like Assembly language on Machine language called portable.

3. C++ use multi-paradigm programming. The Paradigm means the style of programming .paradigm concerned about logics, structure, and procedure of the program. C++ is multi-paradigm means it follows three paradigm Generic, Imperative, Object Oriented.

4. It is useful for the low-level programming language and very efficient for general purpose.

5. C++ provide performance and memory efficiency.

6. It provides a high-level abstraction.

7. In the language of the problem domain.
Re: What are the advantages of C++? [message #1774142 is a reply to message #1774066] Wed, 11 October 2017 01:17 Go to previous messageGo to next message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
Not to extend or invite further discussion but what you have provided is a list of features.
Whether they are advantages depends on the task at hand.
For example, if the task doesn't require portability then portability is a wasted feature and not an advantage.

It's not even clear if all of these are genuine features.
A case in point, In the language of the problem domain.
Wouldn't that depend on the problem?
For statistical processing, R is can be a better language often allowing the solution to be expressed in a few lines when a C++ solution would require pages.
Some solutions are better expressed in Matlab or Octave.
While others are better expressed with spreadsheets.
Some problems are better solved with Perl or awk.
etc.

It's better to approach these questions with a specific problem in mind then see how various languages (assuming it is a problem with a programming solution) contribute to the solution. Not doing so could lead to shoehorning.
Re: What are the advantages of C++? [message #1774378 is a reply to message #1774142] Fri, 13 October 2017 13:05 Go to previous message
Advik Naveen is currently offline Advik NaveenFriend
Messages: 1
Registered: October 2017
Location: India
Junior Member
*OOP provides a clear modular structure for programs.
*It is good for defining abstract data types.
*Implementation details are hidden from other modules and other modules has a clearly defined interface.
*It is easy to maintain and modify existing code as new objects can be created with small differences to existing ones.
*In OOP, programmer not only defines data types but also deals with operations applied for data structures.
Previous Topic:__uuidof support
Next Topic:msp430gcc on Eclipse with mspdebug
Goto Forum:
  


Current Time: Fri Apr 19 14:47:36 GMT 2024

Powered by FUDForum. Page generated in 0.02305 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top