Guest User

Untitled

a guest
Feb 19th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.72 KB | None | 0 0
  1. //Kyle McMenomy Round Peg Program
  2.  
  3. #include "DarkGDK.h"
  4.  
  5. void DarkGDK() {
  6.     int x,y;
  7.  
  8.     x = dbRND(640);
  9.     y = dbRND(340);
  10.  
  11.     dbBox(x, y, x + 50, y + 50);
  12.  
  13.     int Pegx;
  14.     int Pegy;
  15.     dbPrint("Find the center point. Ender a x coordinate");
  16.         Pegx = atoi(dbInput());
  17.     dbPrint("Find the center point. Ender a y coordinate");
  18.         Pegy = atoi(dbInput());
  19.    
  20.     while (Pegx != x && Pegy != y)
  21.     {
  22.         dbCLS();
  23.         dbBox(x, y, x + 50, y + 50);
  24.         dbCircle(Pegx,Pegy,25);
  25.        
  26.         dbPrint("Find the center point. Ender a x coordinate");
  27.             Pegx = atoi(dbInput());
  28.         dbPrint("Find the center point. Ender a y coordinate");
  29.             Pegy = atoi(dbInput());
  30.     }
  31.  
  32.         dbPrint("CONGRATULATIONS YOU WIN!!");
  33.  
  34.         dbWaitKey();
  35.  
  36.  
  37.        
  38.  
  39.        
  40.     }
Add Comment
Please, Sign In to add comment