Week 4 Flashcards

1
Q

Jenis-jenis stream inputs?

A
  1. cin.get()
  2. cin.get(var)
  3. cin.get(array, size)
  4. cin.getline(array, size)
  5. gcount
  6. sync
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Perbedaan Low-Level I/O dan High-Level I/O?

A

Low-level I/O
– Unformatted
– Individual byte unit of interest
– High speed, high volume, but inconvenient for people

• High-level I/O
– Formatted
– Bytes grouped into meaningful units: integers, characters, etc.
– Good for all I/O except high-volume file processing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

3 I/O streams library header file

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly