layout and style
DESCRIPTION
Layout and Style. Chapter 31. O utline. Laying Out Control Structures Laying Out Individual Statements Laying Out Comments Laying Out Routines Laying Out Classes. Which style is better?. if ( expression ) one-statement; . if ( expression ) { one-statement; } . - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: Layout and Style](https://reader035.vdocuments.mx/reader035/viewer/2022081507/568166a9550346895dda9eed/html5/thumbnails/1.jpg)
Layout and Style
Chapter 31
![Page 2: Layout and Style](https://reader035.vdocuments.mx/reader035/viewer/2022081507/568166a9550346895dda9eed/html5/thumbnails/2.jpg)
Outline Laying Out Control Structures Laying Out Individual Statements Laying Out Comments Laying Out Routines Laying Out Classes
![Page 3: Layout and Style](https://reader035.vdocuments.mx/reader035/viewer/2022081507/568166a9550346895dda9eed/html5/thumbnails/3.jpg)
Which style is better?if ( expression ) one-statement;
if ( expression ) { one-statement; }
Format single-statement blocks consistently
![Page 4: Layout and Style](https://reader035.vdocuments.mx/reader035/viewer/2022081507/568166a9550346895dda9eed/html5/thumbnails/4.jpg)
Which style is better?
![Page 5: Layout and Style](https://reader035.vdocuments.mx/reader035/viewer/2022081507/568166a9550346895dda9eed/html5/thumbnails/5.jpg)
Which style is better?
![Page 6: Layout and Style](https://reader035.vdocuments.mx/reader035/viewer/2022081507/568166a9550346895dda9eed/html5/thumbnails/6.jpg)
Which style is better?
ReadEmployeeData(maxEmps,empData,inputFile,empCount,inputError);
ReadEmployeeData(maxEmps, empData, inputFile, empCount, inputError);
![Page 7: Layout and Style](https://reader035.vdocuments.mx/reader035/viewer/2022081507/568166a9550346895dda9eed/html5/thumbnails/7.jpg)
Good or bad?
![Page 8: Layout and Style](https://reader035.vdocuments.mx/reader035/viewer/2022081507/568166a9550346895dda9eed/html5/thumbnails/8.jpg)
Good or bad?
![Page 9: Layout and Style](https://reader035.vdocuments.mx/reader035/viewer/2022081507/568166a9550346895dda9eed/html5/thumbnails/9.jpg)
Good or bad?
![Page 10: Layout and Style](https://reader035.vdocuments.mx/reader035/viewer/2022081507/568166a9550346895dda9eed/html5/thumbnails/10.jpg)
Good or bad?
![Page 11: Layout and Style](https://reader035.vdocuments.mx/reader035/viewer/2022081507/568166a9550346895dda9eed/html5/thumbnails/11.jpg)
Good or bad?
// comment zeroCodeStatementZero;CodeStatementOne;
// comment oneCodeStatementTwo;CodeStatementThree;
// comment zeroCodeStatementZero;CodeStatementOne;// comment oneCodeStatementTwo;CodeStatementThree;
![Page 12: Layout and Style](https://reader035.vdocuments.mx/reader035/viewer/2022081507/568166a9550346895dda9eed/html5/thumbnails/12.jpg)
Good or bad?