< previous page page_74 next page >

Page 74
0074-01.gif
A block is just a sequence of zero or more statements enclosed (delimited) by a { } pair. Now we can redefine a function definition as a heading followed by a block:
0074-02.gif
In later chapters when we learn how to write functions other than main, we'll define the syntax of Heading in detail. In the case of the main function, Heading is simply
int main()
Here is the syntax template for a statement, limited to the C++ statements discussed in this chapter:
0074-03.gif
A statement can be empty (the null statement). The null statement is just a semicolon (;) and looks like this:
;

 
< previous page page_74 next page >