Enter your Sign-on user name and password.

Forgot password?
  • Follow us on:
Loading video...

Start Learning Now

Our free lessons will get you started (Flash® 10 required).
Get immediate access to our entire library.

Sign up for Educator.com

Features Overview

  • Get on-demand access to our complete library
  • Search and jump to exactly what you need to learn
  • Track your progress
  • Download practice and lesson files
  • *Ask questions and get answers from our community & instructors

Functions, Part 1

  • Functions increase readability and maintainability by allowing the programmer to divide the work into smaller, easily understood modules.
  • Each function must have a prototype that describes the function interface, including its return value and parameter types. The compiler uses this to verify correct usage.
  • Each function must have a definition that contains the work performed by the function. Its interface must match the prototype.
  • The function is used when code calls the function, providing an argument for each parameter, and uses the result
  • The function returns a single value and can be used anywhere an expression value is used
  • Here are links to more information about C++ functions: http://www.cplusplus.com/doc/tutorial/functions/ http://www.cplusplus.com/doc/tutorial/functions2/

Functions, Part 1

Lecture Slides are screen-captured images of important points in the lecture. Students can download and print out these lecture slide images to do practice problems as well as take notes while watching the lecture.

Computer Science: Introduction to C++