+ 运算符用于添加字符串。
Public
OMString operator+(const OMString& s);
OMString operator+(const char s);
OMString operator+(const char * s)
inline OMString operator+(const OMString& s1,
const OMString& s2)
inline OMString operator+(const OMString& s1,
const char * s2)
inline OMString operator+(const char* s1,
const OMString& s2)
s
这是要添加的字符串
s1
这是要将字符串 2 添加至的字符串
s2
这是要添加至字符串 1 的字符串
新的字符串