CS105

What is a function?       Why do you need a function?

Scope of the function.   Examples of functions.     



Why do you need Functions??

As your programs get bigger and more complex, you will need to be able to divide them into separate modules each of which does a specific task. In C++ modules are created as separate functions and in this topic you will be introduced to the general form and use of functions.
Functions are a fundamental and very important part of programming in C++. In fact they represent the most important aspect of learning to program. You will learn about functions here by studying simple functions in this topic, then move on to a number of variations and added features of functions in later topics.

 

       What is a function?       Why do you need a function?

Scope of the function.   Examples of functions.