COM SCI 31 Lecture Notes - Lecture 3: Semicolon, Grammar, Xcode

44 views2 pages
25 Mar 2017
School
Professor

Document Summary

Compiling: complier turns code into machine language (0101011 language) Hex -> assembler -> c -> fortran -> c++ -> java -> ruby. Simplified coding = improved the coding language to use cout, include libraries with cout. Cout prints text on the screen: anything within quotes will be printed. Has many functions defined such as cout or cin: to use these functions, must include iostream in program. Example: there are 2 johns: one with namespace a and namespace b. If you said you are already using namespace a, just say john. Errors in which the programmer has violated a portion of the language syntax (the language structure: this will prevent the code from piling i. e. missing a semi-colon at ends of statements runtime/logic errors. Errors that might compile successfully, but encounter an error during runtime that either causes the program to break or produces unexpected results i. e. division by 0 project tips lose points for code without comments.

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