C++标准库
标准库的打印
#include <stdio.h>
const char endl = '\n';
class Console
{
public:
Console& operator << (int i)//
{
printf("%d\n", i);
return *this;//返回当前对象
}
Console& operator << (char c)//
{
printf("%c", c);
return *this
原创
2020-06-24 21:33:28 ·
119 阅读 ·
0 评论