feat: 统一 cpp 文件编码格式为 utf-8

This commit is contained in:
tracyxiong1
2023-01-02 20:39:00 +08:00
parent ade7173887
commit 368eda305f
63 changed files with 327 additions and 327 deletions

View File

@@ -1,16 +1,16 @@
#include<iostream>
һ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ָ<EFBFBD><EFBFBD>ע<EFBFBD><EFBFBD>
//<EFBFBD><EFBFBD>һ<EFBFBD><EFBFBD>ע<EFBFBD>ͷ<EFBFBD><EFBFBD><EFBFBD>
//另一种注释方法
#if 0
asd
#endif
//<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ע<EFBFBD><EFBFBD>
//<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ָ<EFBFBD><EFBFBD>
//打开注释
//条件编译指令
#if 1
asData
#endif

View File

@@ -1,6 +1,6 @@
#include<iostream>
using namespace std;
//<EFBFBD><EFBFBD>ͬ<EFBFBD><EFBFBD><EFBFBD>ڴ<EFBFBD><EFBFBD><EFBFBD>ַ
//相同的内存地址
union myun
{
struct { int x; int y; int z; }u;
@@ -11,7 +11,7 @@ int main()
a.u.x =4;
a.u.y =5;
a.u.z =6;
a.k = 0; //<EFBFBD><EFBFBD><EFBFBD>ǵ<EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><EFBFBD>int<EFBFBD>ռ<EFBFBD>ֵ
a.k = 0; //覆盖掉第一个int空间值
printf("%d %d %d %d\n",a.u.x,a.u.y,a.u.z,a.k);
system("pause");
return 0;