⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 clock.cpp

📁 Since the field of object oriented programming is probably new to you, you will find that there is a
💻 CPP
字号:
#include <iostream.h>
#include "clock.h"



clock::clock(void)
{
   hour = 8;
   minute = 51;
}




void clock::inc_and_print_time(void)
{
   minute++;            // Add one minute to the time
   if (minute > 59) 
   {
      minute -= 60;
      hour++;
   }

                        // Output the user prompt
   cout << "\n      It is now " << hour << ":"; 
   if (minute < 10)
   {
      cout << "0";
   }
   cout << minute << "am, what do you wish to do?     ";   
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -