Previous Lecture | lect02 | Next Lecture |
lect02, Tue 09/28
C++ basic data types, binary, struct keyword
Continuing our Overview of the Course
Plus discussion of:
- A few Basic data types in C++
int
,float
,double
,string
- member functions for
string
, also calledinstance methods
- Very Brief introduction to data representation in binary
- We’ll say more about this in future lectures
- The
struct
keyword in C++ for aggregate data types- We can use a
struct
to group several data items together and treat them as a single unit
- We can use a
Slides: https://docs.google.com/presentation/d/17ma1G7gbReFFaQw6XDI8rD572XJIW6wJBzny9C6vvJ8/edit?usp=sharing