daily pastebin goal
68%
SHARE
TWEET

Untitled

a guest Nov 9th, 2018 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #define WIDTH 70
  2. #define HEIGHT 35
  3.  
  4. HANDLE wHnd;
  5.  
  6. void setup() {
  7.     SMALL_RECT windowSize = {0, 0, WIDTH - 1, HEIGHT - 1};
  8.     COORD bufferSize = { WIDTH , HEIGHT };
  9.     wHnd = GetStdHandle(STD_OUTPUT_HANDLE);
  10.  
  11.     SetConsoleTitle("Conway's Game of Life");
  12.     SetConsoleWindowInfo(wHnd, 1, &windowSize);
  13.     SetConsoleScreenBufferSize(wHnd, bufferSize);
  14. }
  15.    
  16. SetConsoleDisplayMode(wHnd, CONSOLE_FULLSCREEN_MODE, 0);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top