C++类电子时钟

没有讲解必要 

#include 
#include 
#include 
using namespace std;
class clock
{
    public:
        clock(int h=0,int m=0,int s=0): hour(h),minute(m),second(s) {}
        void run()
        {
            while(true)
            {
                show();
                Sleep(1000);
                move_s();
            }
        }

    private:
        int hour;
        int minute;
        int second;
        void show()
        {
            system("cls");
            cout<

你可能感兴趣的:(C++类电子时钟)