CSC 1100 Lecture Notes - Lecture 7: Decimal Mark, Whitespace Character, Include Directive
Document Summary
Learn what a stream is and examine input and output streams. Explore how to read data from the standard input device. Learn how to use predefined functions in a program. Explore how to use the input stream functions get, ignore, putback, and peek: objectives (cont"d. ) Learn how to write data to the standard output device. Discover how to use manipulators in a program to format output. Learn how to perform input and output operations with the string data type. Become familiar with file input and output. I/o: sequence of bytes (stream of bytes) from source to destination. Bytes are usually characters, unless program requires other types of information. Stream: sequence of characters from source to destination. Input stream: sequence of characters from an input device to the computer. Output stream: sequence of characters from the computer to an output device. Use iostream header file to receive data from keyboard and send output to the screen.