当前位置:网站首页>解决“C2001:常量中有换行符“编译问题
解决“C2001:常量中有换行符“编译问题
2022-07-06 04:11:00 【sanqima】
用Virsual Studio编译代码时,有时会出现"C2001:常量中有换行符"问题,出现这种现象的原因是当前编码是"UTF-8不带BOM",要改成"UTF-8带BOM"类型才编译OK。点击VS菜单栏上的【文件】–》高级 --》选中"UTF-8 带BOM" --》OK,如图(1)、图(2)所示。


这里介绍一个批量给UTF-8源代码,添加BOM的工具:UltraCodingSwitch.exe,比如,要给source\i18n\文件夹下的*.cpp、*.h文件,都加上BOM。
1 批量给.cpp文件加上BOM

2 批量给.h文件加上BOM

参考文献
边栏推荐
- asp. Core is compatible with both JWT authentication and cookies authentication
- [FPGA tutorial case 12] design and implementation of complex multiplier based on vivado core
- Several important classes in unity
- 绑定在游戏对象上的脚本的执行顺序
- Stable Huawei micro certification, stable Huawei cloud database service practice
- QML和QWidget混合开发(初探)
- 2/12 didn't learn anything
- Record the pit of NETCORE's memory surge
- Execution order of scripts bound to game objects
- Basic knowledge of binary tree, BFC, DFS
猜你喜欢

C mouse event and keyboard event of C (XXVIII)

Practical development of member management applet 06 introduction to life cycle function and user-defined method

User datagram protocol UDP

Fundamentals of SQL database operation
![[disassembly] a visual air fryer. By the way, analyze the internal circuit](/img/73/29553d60f47deadfff420be40b7f77.jpg)
[disassembly] a visual air fryer. By the way, analyze the internal circuit

1291_ Add timestamp function in xshell log

How to modify field constraints (type, default, null, etc.) in a table

In Net 6 CS more concise method

Mysql数据库慢sql抓取与分析

Stable Huawei micro certification, stable Huawei cloud database service practice
随机推荐
【PSO】基于PSO粒子群优化的物料点货物运输成本最低值计算matlab仿真,包括运输费用、代理人转换费用、运输方式转化费用和时间惩罚费用
[disassembly] a visual air fryer. By the way, analyze the internal circuit
Oracle ORA error message
Global and Chinese markets for medical gas manifolds 2022-2028: Research Report on technology, participants, trends, market size and share
【FPGA教程案例12】基于vivado核的复数乘法器设计与实现
Plus d'un milliard d'utilisateurs de grandes entreprises comme Facebook ont été compromis, il est temps de se concentrer sur le did
SSTI template injection explanation and real problem practice
asp. Core is compatible with both JWT authentication and cookies authentication
【按鍵消抖】基於FPGA的按鍵消抖模塊開發
About some basic DP -- those things about coins (the basic introduction of DP)
TCP/IP协议里面的网关地址和ip地址有什么区别?
Use js to complete an LRU cache
Record the pit of NETCORE's memory surge
/usr/bin/gzip: 1: ELF: not found/usr/bin/gzip: 3: : not found/usr/bin/gzip: 4: Syntax error:
综合能力测评系统
PTA tiantisai l1-078 teacher Ji's return (15 points) detailed explanation
Stc8h development (XII): I2C drive AT24C08, at24c32 series EEPROM storage
What is the difference between gateway address and IP address in tcp/ip protocol?
20、 EEPROM memory (AT24C02) (similar to AD)
Class A, B, C networks and subnet masks in IPv4