윗분 말대로 안되는게 정상적 ~_~
using namespace std; 를 선언하던가
아니면 string, cout, endl, wstring 앞에 전부 std::를 붙이던가
강재호.만해 님이 쓰신 글 :
: 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++에서는 오류가 발생이 안되는데 왜 이런건지 모르곘네요..
:
: 혹시나 아시는 분 답변 부탁 드립니다 ^^
|