Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void getArray (int input[]) {
- int i = 0;
- int c = getchar();
- while(c != '\n') {
- if (c == 'b') {
- input[i] = BLANK;
- } else {
- input[i] = c - CHAR_SHIFT;
- }
- c = getchar();
- if (c == '\n') {
- break;
- }
- if (c != ' ') {
- input[i] = input
- [i]*10 + c - CHAR_SHIFT;
- c = getchar();
- }
- c = getchar();
- i++;
- }
- return;
- }
Add Comment
Please, Sign In to add comment