Lecture overview -- Keyboard shortcut: 'u'  Previous page: Overloaded operators and IO -- Keyboard shortcut: 'p'  Next page: Stream State -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Help page about these notes  Alphabetic index  Course home  Lecture 2 - Page 33 : 42
Notes about C++
Basic facilities
Standard streams

Like most other programming languages C++ supports a number of standard input and output streams

  • The C++ Programming Language: Page 609, 614
 

  • cin and wcin

    • Standard input of char and wchar_t respectively

  • cout and wcout

    • Standard output

  • cerr and wcerr

    • Standard error - unbuffered

  • clog and wlog

    • Standard output stream for error messages