Formatting and Commenting Flashcards
1
Q
what to include at top of program
A
/****
author
date
exercise (name of program)
purpose
*****/
2
Q
what to do after every {
A
press tab
3
Q
what to do after every }
A
//name of method
4
Q
what to comment for methods
A
purpose of method
5
Q
what needs to have spaces around
A
// and operators