line.cpp
来自「PSP公交查询系统的公交数据管理。使用跨平台的QT作为开发工具。目前尚未全部完成」· C++ 代码 · 共 34 行
CPP
34 行
// 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 + =
减小字号Ctrl + -
显示快捷键?