Guest User

Untitled

a guest
Feb 20th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. void getArray (int input[]) {
  2. int i = 0;
  3. int c = getchar();
  4. while(c != '\n') {
  5. if (c == 'b') {
  6. input[i] = BLANK;
  7. } else {
  8. input[i] = c - CHAR_SHIFT;
  9. }
  10. c = getchar();
  11. if (c == '\n') {
  12. break;
  13. }
  14. if (c != ' ') {
  15. input[i] = input
  16. [i]*10 + c - CHAR_SHIFT;
  17. c = getchar();
  18. }
  19. c = getchar();
  20. i++;
  21. }
  22. return;
  23. }
Add Comment
Please, Sign In to add comment