Engineering Science 1036A/B Lecture Notes - Lecture 3: Integrated Development Environment, Uninitialized Variable, Filename Extension

73 views19 pages

Document Summary

Comments allow programmers to put some descriptions into the code that are ignored by the compiler because they are not actual programming statements. Preprocessor directive this line begins with # and it is known as the preprocessor directive. It modifies the source code in two ways: by adding other files and/or, by performing various text replacements in the existing code. Example: #include tells the computer to include the iostream library which contains both istream objects (input) and ostream objects (output) C++ statements is a c++ instruction that ends with a semicolon. Using directive tells the compiler to use the pre-defined functions from certain namespaces. Example: using namespace std; tells the compiler to use functions from the standard namespace. The function main() every c++ program executes its instructions from a function called main, so it is considered the entry point of the program. It has the form: int main() or int main(void)

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