transport.h

来自「软件体系结构的层次模型」· C头文件 代码 · 共 27 行

H
27
字号
// Transport.h: interface for the Transport class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_TRANSPORT_H__2C80FA0E_959D_4519_BFD9_D930862044E8__INCLUDED_)
#define AFX_TRANSPORT_H__2C80FA0E_959D_4519_BFD9_D930862044E8__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "stdafx.h"
#include<iostream.h>
#include "L2Provider.h"

class Transport : public  L2Provider  
{
public:
	virtual void L2Service(){
		cout<<"L2Service starting its job"<<endl;
		level1->L1Service();
		cout<<"L2Service finishing its job"<<endl;}

};

#endif // !defined(AFX_TRANSPORT_H__2C80FA0E_959D_4519_BFD9_D930862044E8__INCLUDED_)

⌨️ 快捷键说明

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