CSC 1253 Lecture : General Notes
Document Summary
Source code statements written by the programmer. Machine languages can be used to write programs that can run on any machine. Compiler - translates source code into executable code. (more thorough explanation in chart below) Syntax the rules that govern the correct order and usage of the elements of a language. Key words words that have a special meaning in a specific language. Variable a location in memory used for storing data and given a name in a computer program. A variable must be declared before it can be used. Comment- what you write after // essentially notes for the programmer. Preprocessor directive - lines starting with # such as #include. the directive tells the compiler to use the contents of a separate file. Ex: iostream allows for the cout and cin commands. Executable code would not be defined within the scope of the program.