‘+’可以重载为单目..#include<iostream>using namespace std;class Counter{private:int count;public:Counter(int n=0):