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

@@ -15,7 +15,7 @@ Clock::Clock(Clock &c)
}
void Clock::SetTime(int NewH,int NewM,int NewS)
{
//<EFBFBD>Ӳ<EFBFBD><EFBFBD><EFBFBD>thisָ<EFBFBD>һ<EFBFBD><EFBFBD>
//加不加this指针都一样
this->Hour=NewH;
this->Minute=NewM;
this->Second=NewS;
@@ -26,7 +26,7 @@ void Clock::ShowTime()
cout<<this->Minute<<endl;
cout<<this->Second<<endl;
}
//<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
//析构函数
Clock::~Clock()
{
@@ -37,7 +37,7 @@ int main(int argc, char const *argv[])
c.SetTime(10,20,30);
c.ShowTime();
//<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
//拷贝构造函数调用
Clock c1(c);
c1.ShowTime();
c1.SetTime(90,98,99);