Category : C++ Source Code
Archive   : IDIOMS.ZIP
Filename : ECOORD.H

 
Output of file : ECOORD.H contained in archive : IDIOMS.ZIP
/* Copyright (c) 1992 by AT&T Bell Laboratories. */
/* Advanced C++ Programming Styles and Idioms */
/* James O. Coplien */
/* All rights reserved. */

//************************************************************//
// //
// F I L E : E C O O R D . H //
// //
// Interface for struct Coordinate //
// //
//************************************************************//

#define _COORDINATE_H

// This is a simple public class that represents a Cartesian
// coordinate on the graphics screen

struct Coordinate {
int x, y;
Coordinate(int xx = 0, int yy = 0) { x = xx; y = yy; }
};


  3 Responses to “Category : C++ Source Code
Archive   : IDIOMS.ZIP
Filename : ECOORD.H

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/