- printing data at a array location directly after receiving the two digit address using cbreak(); <curses.h> and getch();
- int northsouth[2]; //array to hold input
- int nschoice; //counter for for below
- int loopOn = 1;
- int northSave; //(confused me) places to save value of northSouth[] in attempt
- int southSave; //to print only after receiving two digits.
- while(loopOn != 0)
- {
- for(nschoice = 0; nschoice < 2; ++nschoice)
- {
- northsouth[nschoice] = getch();
- if(nschoice == 1 && northsouth[0] != northSave && northsouth[1] != southSave)
- {
- strcat(input, l[northsouth[0] -= 48][northsouth[1] -= 48]);
- printf("