why convert from c to c n.
Download
Skip this Video
Download Presentation
Why convert from C to C++ ?

Loading in 2 Seconds...

play fullscreen
1 / 8

Why convert from C to C++ ? - PowerPoint PPT Presentation


  • 87 Views
  • Uploaded on

Why convert from C to C++ ?. What do we know?. The sky is blue Snow is cold. What do we know?. The sky is blue Snow is cold This girl is hot  AND... C++ supports object-oriented programming. What are the options?. Hide implementation details Reuse class code Reuse generic classes

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'Why convert from C to C++ ?' - addison-oneil


Download Now An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
what do we know
What do we know?
  • The sky is blue
  • Snow is cold
what do we know1
What do we know?
  • The sky is blue
  • Snow is cold
  • This girl is hot 

AND...

  • C++ supports object-oriented programming
what are the options
What are the options?
  • Hide implementation details
  • Reuse class code
  • Reuse generic classes

use a C++ class template and let the compiler do the work

  • Extend/Overload operators
  • Derive classes from base classes
what are the options1
What are the options?
  • Avoid errors through function prototyping
  • Add parameters without changing function calls
  • Using safer, simpler I/O
  • Improve performance with fast inline functions
  • Overload function names
some remarks
Some remarks
  • Change involves effort

Changes will be necessary!!

  • Massage C code into C++

extern “C” {...}

  • The hard part: designing objects

ask what fundamental operations define each object

  • If it ain’t broke, don’t fix it!