D
Dave
The program below is conforming according to VC++ 7.1 and Comeau online. I
would have expected a type mismatch. Am I seeing a compiler problem, or is
the observed behavior correct?
Thanks!
#include <iostream>
using namespace std;
int main()
{
// Displays a hex number under VC++ 7.1
cout << L"Hello world!" << endl;
// Displays "Hello world!" under VC++ 7.1
wcout << "Hello world!" << endl;
}
would have expected a type mismatch. Am I seeing a compiler problem, or is
the observed behavior correct?
Thanks!
#include <iostream>
using namespace std;
int main()
{
// Displays a hex number under VC++ 7.1
cout << L"Hello world!" << endl;
// Displays "Hello world!" under VC++ 7.1
wcout << "Hello world!" << endl;
}