home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / OTHERUTI / TCPP30-3.ZIP / EXAMPLES.ZIP / DYNPOINT.CPP < prev    next >
C/C++ Source or Header  |  1992-02-18  |  609b  |  27 lines

  1. // Borland C++ - (C) Copyright 1991 by Borland International
  2.  
  3. // DPOINT.CPP -- exercise in Getting Started
  4.  
  5. #include <iostream.h>
  6. #include <graphics.h>
  7. #include <conio.h>
  8. #include "figures.h"
  9.  
  10. int main()
  11. {
  12. // Assign pointer to dynamically allocated object; call constructor
  13. Point *APoint = new Point(50, 100);
  14.  
  15. // initialize the graphics system
  16. int graphdriver = DETECT, graphmode;
  17. initgraph(&graphdriver, &graphmode, "..\\bgi");
  18.  
  19. // Demonstrate the new object
  20. APoint->Show();
  21. cout << "Note pixel at (50,100). Now, hit any key...";
  22. getch();
  23. delete APoint;
  24. closegraph();
  25. return(0);
  26. }
  27.