ENGR 101 Lecture 7: Introduction C++

101 views12 pages
9 Aug 2018
School
Department
Course

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.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents