The following tree was created by inserting these values in order. (10,15,13,24,4,7,9,5,2)

A Common ground for all CPSC majors and self taught programmers.
In this small program the function subtraction() is being called by the main(). A serious of couts are being used to show different uses of the function call.
The syntax to declare a new variable is first write the desired data type and then the variable name.
ex: int a;
float number;
string LastName
In cases of multiple variables of the same type its possible to declare them in one statement.
ex: int a, b, c;
Another aspect of declaring variables needs to be taken into account. The variables char, short, long and int can be either signed or unsigned, depending on the values that need to be represented.
Global variables can be referred from anywhere in the code, even inside functions, whenever it is after its declaration.
The scope of local variables is limited to the block enclosed in braces ({}) where they are declared
Incoming computer science majors will most likely be introduced to programming in Visual Basic, Java, or C++. Even if you aren't a CPSC major you will probably take a programming class as a general education. Many first time programmers will be overwhelmed if they do not allocate their time efficiently. Most errors occur in beginner programs because of a deadline being close and not enough time to really work out a problem. Some general tips that will help new programmers are...
Using your time efficiently is critical in any college level course. Students should not expect to just pick up on programming; it is a skill that is learned through hours of practice. Professors are hired for a good reason, use them and learn from them rather than just day dream in class. If you follow these tips you will have a better understanding of the topic and your programs will be much easier to build and debug.