Guest User

Untitled

a guest
Jul 23rd, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. int get_char_index(char c) {
  2. if(c >= 'a' && c <= 'z')
  3. return c-'a'+1;
  4. if(c == ' ')
  5. return 0;
  6. if(c == 'å')
  7. return 27;
  8. if(c == 'ä')
  9. return 28;
  10. if(c == 'ö')
  11. return 29;
  12.  
  13. return -1;
  14. }
Add Comment
Please, Sign In to add comment