当前位置:网站首页>解决“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
参考文献
边栏推荐
- Exchange bottles (graph theory + thinking)
- Global and Chinese markets for patent hole oval devices 2022-2028: Research Report on technology, participants, trends, market size and share
- Several important classes in unity
- Le compte racine de la base de données MySQL ne peut pas se connecter à distance à la solution
- Global and Chinese markets for fire resistant conveyor belts 2022-2028: Research Report on technology, participants, trends, market size and share
- Mlapi series - 04 - network variables and network serialization [network synchronization]
- MySql數據庫root賬戶無法遠程登陸解决辦法
- Hashcode and equals
- [disassembly] a visual air fryer. By the way, analyze the internal circuit
- P2648 make money
猜你喜欢
记一次excel XXE漏洞
MySQL master-slave replication
Maxay paper latex template description
关于进程、线程、协程、同步、异步、阻塞、非阻塞、并发、并行、串行的理解
Basic use of MySQL (it is recommended to read and recite the content)
Benefits of automated testing
ESP32_ FreeRTOS_ Arduino_ 1_ Create task
10个 Istio 流量管理 最常用的例子,你知道几个?
math_ Derivative function derivation of limit & differential & derivative & derivative / logarithmic function (derivative definition limit method) / derivative formula derivation of exponential functi
Thread sleep, thread sleep application scenarios
随机推荐
Yyds dry goods inventory hcie security Day11: preliminary study of firewall dual machine hot standby and vgmp concepts
Figure application details
Basic use of MySQL (it is recommended to read and recite the content)
Record the pit of NETCORE's memory surge
【leetcode】1189. Maximum number of "balloons"
TCP/IP协议里面的网关地址和ip地址有什么区别?
MySQL learning record 13 database connection pool, pooling technology, DBCP, c3p0
Scalpel like analysis of JVM -- this article takes you to peek into the secrets of JVM
C mouse event and keyboard event of C (XXVIII)
The Research Report "2022 RPA supplier strength matrix analysis of China's banking industry" was officially launched
2/12 didn't learn anything
math_极限&微分&导数&微商/对数函数的导函数推导(导数定义极限法)/指数函数求导公式推导(反函数求导法则/对数求导法)
10 exemples les plus courants de gestion du trafic istio, que savez - vous?
Use js to complete an LRU cache
Global and Chinese markets for patent hole oval devices 2022-2028: Research Report on technology, participants, trends, market size and share
Security xxE vulnerability recurrence (XXe Lab)
食品行业仓储条码管理系统解决方案
Cf603e pastoral oddities [CDQ divide and conquer, revocable and search set]
Simple blog system
How does technology have the ability to solve problems perfectly