C++, like Pascal, breaks instructions up into blocks called functions. When a program is first run, a function named "main" is executed. One big difference between Pascal and C++ is how functions are defined. Take a look at this very small program: void main(void) { }
Let's go over each part. The first line, "
In the above example, the block is the area between the { and the }.
The { and } are C++'s equivalents of Pascal's Begin and End -- In fact, they are nearly
identical. As with Pascal, you can use the { and } to fill in as many lines
as we want and have them used as one big instruction. You've probably done this
with a |