Coding_Rules

Coding_Rules - CODING RULES, CSC1253/2, FALL 2010...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
C ODING R ULES , CSC1253/2, F ALL 2010 Introduction to Programming with C++, Hartmut Kaiser http://www.cct.lsu.edu/~hkaiser/fall_2010/csc1253.html There is no 'best' way to format program text, comments, etc. Nevertheless, this document is meant to give you a guideline of how to format your C++ programs. I consider it more important to format the C++ source consistently than to meticulously follow all the rules mentioned here. At the same time, if you adhere to the rules described below your program will be easy to read and to understand. You and others will have a stress-free way to check for block-structuring errors without having to switch attention back-and-forth between different sections of the program. The rules are as follows, and we believe that all of our example code has been formatted accordingly: 1. At the beginning of the program 3 sections of comments are mandatory: the Identification Header , the Problem Specification , and the Problem Analysis . See the appendix to the homework assignment 1 (Submitting homework) as an example. 2.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 12/29/2011 for the course CSC 1254 taught by Professor Blanks,l during the Fall '08 term at LSU.

Page1 / 2

Coding_Rules - CODING RULES, CSC1253/2, FALL 2010...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online