BTE 320 Lecture 1: BTE 320

9 views10 pages
20 May 2022
Course
Professor

Document Summary

Algorithm - step-by-step problem-solving process where a solution is achieved in a finite amount of time. Computer program - a sequence of statements whose objective is to accomplish a task. Programming - the process of planning and creating a program. Syntax rules: rules that specify which statements (instructions) are legal or valid (structure wise) Semantic rules: determine the meaning of the instructions (it will work, but in the way that i want? x+y works if both is int, but problem if one int and one string) Single line comment: // this is a comment. Multiple line comment: /* this is a comment */ Token: smallest individual unit of a program written in any language. C++ tokens include special symbols, word symbols and identifiers. Reserved words: cannot be redefined within a program. Variable names can begin with either a letter or underscore. It can only contain letters, numbers and underscore. Cin. ignore(how many characters to ignore, unless you find this character).

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

Related Questions