Structs and I/O Streams

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/10

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 12:50 AM on 10/3/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

11 Terms

1
New cards

struct

user-defined data type that groups related variables of different data types under a single name

2
New cards

True or false: structs have member functions

false; they only have member variables

3
New cards

default accessibility of structs

public

4
New cards

What must be after the closing bracket of a struct definition?

a semicolon

5
New cards

declare struct object

structname objectname

ex: Student s1;

6
New cards

access or assign a member variable

structobjectname.membervariablename

7
New cards

initialize default values for struct variables

assign them in the struct definition

8
New cards

What order do you initialize values in hierarchial structs?

in order of the member variables

9
New cards

stream

flow of data

10
New cards

<iostream>

provides objects that can read user input and output data to the console

11
New cards

<fstream>

provides classes for handling file input and output operations