【发布时间】:2011-06-07 14:46:35
【问题描述】:
我是 C++ 新手,我想知道为什么下面的行不正确。 (SERVER_NAME 已被定义为常量)
L"Initial Catalog=DatabaseName;Data Source=" << SERVER_NAME << ";"
我收到以下错误:
error C2296: '<<' : illegal, left operand has type 'const wchar_t [...'
error C2308: concatenating mismatched strings
谢谢
【问题讨论】:
标签: c++ literals string-concatenation