here is the code, if you have any ideas help me out please.
as you can notice I have it set to getch/getchar and I need it to be set to look for int's, any easy way to achieve this or will I need to make a function, if you have any suggestions or ideas, help a brother out.Code:#include <stdio.h> #include <conio.h> int main() { printf("test for robot"); for(x=0,x>=0;x++){ while(( array[x] = getch()) != EOF){ if(array[x] == 1) printf("test 1"); else if(array[x] ==2) printf("test 2"); else printf("error"); } } }