Chinaunix首页 | 论坛 | 博客
  • 博客访问: 8048443
  • 博文数量: 594
  • 博客积分: 13065
  • 博客等级: 上将
  • 技术积分: 10324
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-26 16:44
个人简介

推荐: blog.csdn.net/aquester https://github.com/eyjian https://www.cnblogs.com/aquester http://blog.chinaunix.net/uid/20682147.html

文章分类

全部博文(594)

分类: C/C++

2013-03-27 14:40:08

如编译时遇到如下所示的编译错误:

./month_matcher.cpp:1: error: stray ‘\357’ in program
./month_matcher.cpp:1: error: stray ‘\273’ in program
./month_matcher.cpp:1: error: stray ‘\277’ in program

则说明文件为“带BOM头的UTF8”编码格式,相应的解决方法是将文件转换为“不带BOM头的UTF8”编码格式,Notepad++就带有这样的功能:

阅读(4311) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~