📄 line.cpp
字号:
// Line.cpp: implementation of the Line class.
//
//////////////////////////////////////////////////////////////////////
#include "Line.h"
string trim(string s, string drop = " ") ;
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
Line::Line() {mIsSame = false;}
Line::Line(string name, string m_comment, string up, string down, bool isSame) {
mName = trim(name);
mComment = trim(m_comment);
mUp = trim(up);
mDown = trim(down);
mIsSame = isSame;
}
Comment::Comment() {
strcpy(mCity, "");
strcpy(mAuthor , "");
strcpy(mTime , "");
strcpy(mComment , "");
}
Comment::Comment(const char * city, const char * author, const char * time, const char * comment) {
strcpy(mCity, city);
strcpy(mAuthor , author);
strcpy(mTime , time);
strcpy(mComment , comment);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -