CSCI 103L Lecture Notes - Lecture 15: Stochastic Process

52 views4 pages

Document Summary

C++ strings: . size() gets length, . c_str() get c string version of c++ string. Types and instances: types tell us how much memory will be used and what the data means. Classes: structs were originally in c, classes are the c++ version, they are essentially interchangeable. De nitions and instances: structs must rst be de ned / declared, ex: Struct pixel : unsigned char red, unsigned char greed, unsigned char blue, now this can be used as a type, de nition / declaration is just making the blueprint, now you can use it in an instance. Mypix. blue() = 234 , etc: cant cin, cout, >,

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers