I was sick and sleep deprived today, so after I finished presenting the project, I left. There was only one IR sensor per group, so I was unable to really do anything with it, since Anthony had the sensor.
Lecture Structures Structure defines set of data, but individual parts do not have to be the same type. Example 1.1 struct hurricane { char name[10]; int year,category; }; Within a structure, variables and even arrays can be defined. Structures are also known as aggregate data types since multiple data values can be collected into a single data type. Individual values within a structure are called data members, and each member is given a name. In Example 1.1, the names of the data members are name, year, and category. To refer to a data member, the structure variable name followed by a period and a data member name is used. Definition and Initialization Define structure. Keyword struct used to define name of structure (aka structure tag) and data members that are included in structure After structure defined, structure variables can be defined using declaration statements. Semicolon required after structure definition. Statements can appear before m...
Comments
Post a Comment