Class 3: Input/Output

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/7

flashcard set

Earn XP

Description and Tags

Missing escape sequences, getline

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

8 Terms

1
New cards

What do you need to use Cout and Cin?

#include <iostream>

2
New cards

Cout

The standard output object, displayed data on the screen

3
New cards

«

sends data from the program to an output object

4
New cards

Endl(endline)

A special command that directs the output to advance to the next line for future printing

5
New cards

Cin

The standard input object, gets data that user typed for the program

6
New cards

»

used to place data from an input object into variables

7
New cards

What are the prerequisites before using cin? 

The variable must be declared before it is used in cin

8
New cards

Problems with implementing cin

Results are unpredictable if the user enters data of an incorrect type

When getting input using a string from the keyboard, it cannot have any spaces