1/10
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
struct
user-defined data type that groups related variables of different data types under a single name
True or false: structs have member functions
false; they only have member variables
default accessibility of structs
public
What must be after the closing bracket of a struct definition?
a semicolon
declare struct object
structname objectname
ex: Student s1;
access or assign a member variable
structobjectname.membervariablename
initialize default values for struct variables
assign them in the struct definition
What order do you initialize values in hierarchial structs?
in order of the member variables
stream
flow of data
<iostream>
provides objects that can read user input and output data to the console
<fstream>
provides classes for handling file input and output operations