Functions
Beginning C++
Functions can be useful if you have a certain block of code that you want to execute many times in your program but you dont want to write the code in every time. Functions will also reduce the size of your program and they can make it easier to find and fix any errors. A function can be written out of the main function but everything that you want your to run must be called upon within the main function. Here is a program that illustrates one way how you can make a funtion and call it in a program.  
Input, Output and Variables
#include <iostream.h>
#include <stdlib.h>

using namespace std;

void test()
{
char choice;

cout<<"do you want to continue? y/n\n";
cin >> choice;

switch (choice) {
case 'y':
test();
}
}

int main(int argc, char *argv[])
{
test();

system("pause");
return 0;
}
Operators
Looping
Variables
Functions
In this program, test is the name of the function and we normally use void to declare a function. You can see how the function is seperate from the main one and is called from the main function. This function will execute every time 'y' is entered. 
More coming soon