CSCI 103L Lecture Notes - Lecture 15: Stochastic Process
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, >,