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

📄 client.cpp

📁 This file implements the ExtTime member functions and the Time class member functions
💻 CPP
字号:
//******************************************************************
// TestDate program: client.cpp        DesignNo.11_2
// This is a very simple client to test virtual function.
//******************************************************************
#include"exttime.h"
#include<iostream>

using namespace std;

void Print(/* in */ Time &someTime);

int main()
{
	Time time1(5,55,45);
	ExtTime extTime1(0,0,0,CST);

	Print(time1);
	Print(extTime1);

	return 0;
}
//*****************************************************************
void Print(/* in */ Time &someTime)
{
	cout<<"******************************************"<<endl;
	cout<<"** The time is ";
	someTime.Write();
	cout<<endl;
	cout<<"******************************************"<<endl;
}


⌨️ 快捷键说明

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