C Programming Lab 2

C Programming Lab 2 - #define NUM_COLUMNS 7 #define...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
#define NUM_COLUMNS 7 #define NUM_ROWS 6 const char keyboard_keys[NUM_COLUMNS][NUM_ROWS] = { {‘N’, ‘I’, ‘P’, ‘M’, ‘F’, ‘A’}, {‘C’, ‘R’, ‘V’, ‘B’, ‘%’, ‘L’}, {‘\r’, ‘(’, ‘)’, ‘~’, ‘\b’, 0}, {‘\v’, ‘7’, ‘8’, ‘9’, ‘/’ 0}, {‘\n’, ‘4’, ‘5’, ‘6’, ‘*’, 0}, {‘S’, ‘1’, ‘2’, ‘3’, ‘-’, 0}, {‘0’, ‘0’, ‘.’, ‘-’, ‘+’}}; int keyboard_key() { int row, col;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/03/2011 for the course MATH 1090 taught by Professor Greenwood during the Spring '08 term at MIT.

Ask a homework question - tutors are online