string str;
str.append("test");
std::cout << str << endl;
wstring wstr;
wstr.append(L"test");
std::wcout << wstr.c_str() << endl;
가장 일반적인 코드인데요...
std::cout << str << endl; 이 코드가 오률를 발생 시키네요..
[BCC32 Error] main.cpp(30): E2094 'operator<<' not implemented in type 'ostream' for arguments of type 'string'
Full parser context
main.cpp(13): parsing: int wmain(int,wchar_t * *)
Builder6나 Turbo C++에서는 오류가 발생이 안되는데 왜 이런건지 모르곘네요..
혹시나 아시는 분 답변 부탁 드립니다 ^^
|