運算子 +

+ 運算子會新增字串。

可見性
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)
簽章 1、2 及 3 的參數

要新增的字串

簽章 4、5 及 6 的參數
s1

要將字串 2 新增至的字串

s2

要新增至字串 1 的字串

傳回

新字串


意見回饋