This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <windows.h> | |
LRESULT __stdcall WindowProcedure(HWND window, UINT msg, WPARAM wp, LPARAM lp) | |
{ | |
switch (msg) | |
{ | |
case WM_DESTROY: | |
std::cout << "\ndestroying window\n"; | |
PostQuitMessage(0); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
/* | |
A 'dictionary' for scrabble or other games where you can add words and retrieve them with results such as: | |
input: "app" | |
result: "apple", "application"... | |
*/ |