Advantages of C++-VBForums
Results 1 to 6 of 6

Thread: Advantages of C++

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2014
    Location
    Chennai
    Posts
    1

    Advantages of C++

    Hi every one, Can any one tell me some advantages of C++ rather than C language..

  2. #2
    Super Moderator FunkyDexter's Avatar
    Join Date
    Apr 2005
    Location
    An obscure body in the SK system. The inhabitants call it Earth
    Posts
    6,513

    Re: Advantages of C++

    I've moved your thread to the C and C++ section. The code bank is for posting code snippets and examples so you probably wouldn't have got many responses in there.
    You can depend upon the Americans to do the right thing. But only after they have exhausted every other possibility - Winston Churchill

    Hadoop actually sounds more like the way they greet each other in Yorkshire - Inferrd

  3. #3
    Frenzied Member KGComputers's Avatar
    Join Date
    Dec 2005
    Location
    Cebu, PH
    Posts
    1,888

    Re: Advantages of C++

    I'm no C++ expert or experienced one. However, based on my understanding C++ supports Object Oriented Programming while C doesn't.

    KGC
    CodeBank: VB.NET & C#.NET | ASP.NET
    Programming: C# | VB.NET
    Blogs: My Blog | GitHub Repo | ASP Snippets | CodeASP.net
    ___________________________________________________________________________________

    Rating someone's post is a way of saying Thanks...

  4. #4
    Fanatic Member AceInfinity's Avatar
    Join Date
    May 2011
    Posts
    696

    Re: Advantages of C++

    Here's my list from my experience:

    1. OOP
    2. Smart pointers & RAII with the STL
    3. Templates (Macro's in C can be harder to deal with)
    4. Better type safety
    5. References

    That's a good starting list.
    <<<------------
    Improving Managed Code Performance | .NET Application Performance
    < Please if this helped you out. Any kind of thanks is gladly appreciated >


    .NET Programming (2012 - Present)
    ®Crestron - DMC-T Certified Programmer | Software Developer
    <<<------------

  5. #5
    Hyperactive Member 2kaud's Avatar
    Join Date
    May 2014
    Location
    England
    Posts
    427

    Re: Advantages of C++

    - classes (OOP)
    - templates
    - exceptions
    - containers (lists, maps, vectors, sets etc)
    - iterators
    - i/o streams
    - operator overloading
    - function overloading
    - algorithms (sort, merge, search etc)
    - strings
    - multi-threading (C++11)
    - references
    - improved type safety
    - Lambda Expressions (C++11)
    - Regular Expressions
    - rvalue references
    .
    .
    .
    All advice is offered in good faith only. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/

    C++17 Compiler: Microsoft VS2017 (15.5.0)

  6. #6
    Fanatic Member AceInfinity's Avatar
    Join Date
    May 2011
    Posts
    696

    Re: Advantages of C++

    Quote Originally Posted by 2kaud View Post
    - classes (OOP)
    - templates
    - exceptions
    - containers (lists, maps, vectors, sets etc)
    - iterators
    - i/o streams
    - operator overloading
    - function overloading
    - algorithms (sort, merge, search etc)
    - strings
    - multi-threading (C++11)

    - references
    - improved type safety
    - Lambda Expressions (C++11)
    - Regular Expressions
    - rvalue references
    .
    .
    .
    I'm curious on clarification of the highlighted parts above? C has sorting algorithms (http://www.cplusplus.com/reference/cstdlib/qsort/). But the I/O objects std::cout, etc.. for C++ are all synchronized with stdin, stdout, stderr, used by C. There's definitely a lot I missed, yet I have a biased view since I use C++ more than I use C... C++ I/O is subjective however. This is because C style I/O can integrate more easily with localisation, as the whole string to localise is not broken up in smaller strings as with C++ I/O stream objects, and with some strategies, the localizer can reorder the order of the inserted value, move them around in the string, etc... In some cases, because it's less bulky too, C I/O is faster than a standard C++ I/O implementation. You can also still multi-thread in C; it is possible.
    Last edited by AceInfinity; Oct 16th, 2014 at 08:29 PM.
    <<<------------
    Improving Managed Code Performance | .NET Application Performance
    < Please if this helped you out. Any kind of thanks is gladly appreciated >


    .NET Programming (2012 - Present)
    ®Crestron - DMC-T Certified Programmer | Software Developer
    <<<------------

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.