评论

  • #include "stdafx.h"

    #include <iostream>



    using namespace std;



    template <class T, int i = 1>

    class counter

    {

    public:

    counter() {

    step = i;

    value += step;

    }

    ~counter() {

    value -= step;

    }

    static int getvalue() {

    return value;

发表评论

您将收到博主的回复邮件
记住我