Hi,
can I mix output to cout and wcout? It seems that if I write to cout
first it works fine but if I start with wcout the output to cout
vanishes. I assume that is has to do with the initialization of
standard output, right?
#include <iostream>
using namespace std;
int main(int argc, char *argv[]){
wcout<<L"wcout"<<endl; //(*)
cout<<"cout"<<endl;
wcout<<L"wcout"<<endl;
cout<<"cout"<<endl;
}
This gives
wcout
wcout
but if I comment out the line marked (*) the output is
cout
wcout
cout
Is that standard or is my compiler ("gcc version 4.1.2 20061115
(prerelease) (SUSE Linux)") buggy?
Ralf