Creative Commons License Foxbond's Repo

/** (c) 2012 Michał (Foxbond) Chraniuk */
#include <iostream>
#include <conio.h>

using namespace std;


int main() {

	char ch;

	while (true){
		ch = _getch();
		cout << ch << ":"<<(int)ch<<endl;
		if ((int)ch == 27){ break;}
	}


	return 0;
}


> Back