ENGR 101 Lecture 7: Introduction C++
Document Summary
Every line of code ends with a semicolon. Each program starts with "int" and {, and ends with }. A compiler is a program that translates to other programs from human-friendly programing languages into machine code. The first compiler was discovered by grace hopper. You are required to declare variables before you can use them. It lets the compiler know about the variables: You may provide an initializer expression for a declaration. This can be a single value, but it can also be derived from other variables or an arbitrary expression. If you don"t provide an initializer, the value of the variable is undefined until you assign something into it. The type a variable can hold is fixed. Refers to properties of your code that are known unil your program is actually running. Use // or /* (anything in between is a comment) /* Assignment is used to store a new value into a variable.