Week 4 Flashcards
1
Q
Jenis-jenis stream inputs?
A
- cin.get()
- cin.get(var)
- cin.get(array, size)
- cin.getline(array, size)
- gcount
- sync
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
3
Q
3 I/O streams library header file
A