client.cpp

来自「This file implements the ExtTime member 」· C++ 代码 · 共 33 行

CPP
33
字号
//******************************************************************
// 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 + =
减小字号Ctrl + -
显示快捷键?