rectangle.h

来自「LinPacker是一个优化矩形布局的工具」· C头文件 代码 · 共 50 行

H
50
字号
/*************************************************************************** *   Copyright (C) 2003 by ita                                             * *   tnagy@eleve.emn.fr                                                    * *                                                                         * *   This program is free software; you can redistribute it and/or modify  * *   it under the terms of the GNU General Public License as published by  * *   the Free Software Foundation; either version 2 of the License, or     * *   (at your option) any later version.                                   * ***************************************************************************/#include <iostream>struct rectangle{		int	longueur;		int	largeur;		int	posx;		int	posy;		bool	orientation;		int	numero;			rectangle();		rectangle(int lo,int la,int xpos,int ypos,bool orient, int num); 		~rectangle();				int	getYHaut();		int	getXMax();				int	getLongueur();		int	getLargeur();				int	getSurface();};struct lieu{	int posx;	int posy;		lieu();	lieu(int i,int j);};bool operator< (lieu x, lieu y);bool operator< (rectangle x, rectangle y);	

⌨️ 快捷键说明

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