C++中输出流运算符重载
private:
friend std::ostream& operator<<(std::ostream& outstream, const Invoice& invoice);
std::ostream& operator<<(std::ostream& outstream, const Invocie& invoce)
{
outstream << "Invoice No:" << invoic.
原创
2020-06-12 10:12:16 ·
426 阅读 ·
0 评论