1// iostream_cerr.cpp
2// compile with: /EHsc
3#include <iostream>
4#include <fstream>
5
6using namespace std;
7
8void TestWide( )
9{
10 int i = 0;
11 wcout << L"Enter a number: ";
12 wcin >> i;
13 wcerr << L"test for wcerr" << endl;
14 wclog << L"test for wclog" << endl;
15}
16
17int main( )
18{
19 int i = 0;
20 cout << "Enter a number: ";
21 cin >> i;
22 cerr << "test for cerr" << endl;
23 clog << "test for clog" << endl;
24 TestWide( );
25}
26