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

📄 person.h

📁 非常完整的电梯模拟系统 欢迎大家提出宝贵建议
💻 H
字号:
#ifndef PERSON_STRUCT
#define PERSON_STRUCT

#include <iostream.h>
#include <stdlib.h>
#include <conio.h>
#include <time.h>
#include <iomanip.h>

struct Person
{
	int at;                   //at floor
	int to;                   //destinate flooar
	int weight;
	Person(){}
	Person(int a,int t,int w)
	{
		at=a;
		to=t;
		weight=w;
	}
	friend ostream & operator<<(ostream & os,Person &p)
	{
		os<<"\t初始楼层:"<< p.at << endl
			<< "\t到达楼层:" << p.to << endl
			<< "\t该人的体重:" << p.weight << endl;
		return os;
	}
};

#endif

⌨️ 快捷键说明

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