把源文件后缀名改为cpp。要支持C++11版本特性,只需要在Keil µVision集成编辑器里选择Project - Options - C/C++ 在- Misc Controls里面添加--cpp11.