your program comments
any preprocessor directives, e.g., #include
any global definitions, e.g., const, type definitions
function prototypes
int main() {
locals for main
body of main
return 0; // 0 for normal return
}
function implementations
A simple example shows using the bubble sort on a
textfile
of student data:
the bubble sort .cpp file