home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / IDIOMS.ZIP / ECOORD.H < prev    next >
C/C++ Source or Header  |  1991-12-04  |  848b  |  23 lines

  1. /* Copyright (c) 1992 by AT&T Bell Laboratories. */
  2. /* Advanced C++ Programming Styles and Idioms */
  3. /* James O. Coplien */
  4. /* All rights reserved. */
  5.  
  6. //************************************************************//
  7. //                                                            //
  8. //     F I L E :    E C O O R D . H                           //
  9. //                                                            //
  10. //         Interface for struct Coordinate                    //
  11. //                                                            //
  12. //************************************************************//
  13.  
  14. #define _COORDINATE_H
  15.  
  16. // This is a simple public class that represents a Cartesian
  17. // coordinate on the graphics screen
  18.  
  19. struct Coordinate {
  20.     int x, y;
  21.     Coordinate(int xx = 0, int yy = 0) { x = xx; y = yy; }
  22. };
  23.