1/10/00
COM1100-Winter2000-Yuhong Yin Northeastern University
13
int main()
nBegins the definition of a function called main. A C++ program begins execution in the function main. n– A function is a collection of programming instructions that carry out a particular task.
n– Every C++ program must have a main function
n– Most C++ programs contain other functions besides main
n