you gotta be cool. c++ ? c++ standard library header files inline functions references and reference...

31
You gotta be cool Programming II

Upload: bryce-poole

Post on 24-Dec-2015

216 views

Category:

Documents


1 download

TRANSCRIPT

  • Slide 1
  • You gotta be cool
  • Slide 2
  • C++ ? C++ Standard Library Header Files Inline Functions References and Reference Parameters Default Arguments and Empty Parameter Lists Unary Scope Resolution Operator Function Overloading Function Templates C++ as a better C
  • Slide 3
  • Improves many of C features C is structured vs. C++ is Object Oriented (increasing software productivity, quality and reusability) The increment operator (++) indicates that C++ is an enhancement of C C++ is a superset of C, therefore C++ compiler can also compile existing C programs Why C++
  • Slide 4
  • Can someone in this class be a lady or a gentleman? Help me here Come in front and code a simple C program that adds up 2 numbers Shouldnt be a problem right? Yall have learned this in Programming I kehkehkeh..evil laugh :D Why C++
  • Slide 5
  • Simple program that you already know with C
  • Slide 6
  • and same results with C++
  • Slide 7
  • Slide 8
  • - header files from standard library. To tell C++ preprocessor to include the contents of the input/ output stream header file iostream. cout and the