Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main() {
  4.  
  5. char c;
  6. while((c = getch()) != EOF) {
  7. if(c == '\t')
  8. printf("\\t");
  9. else if(c == '\b')
  10. printf("\\b");
  11. else if(c == '\\')
  12. printf("\\\\");
  13. else if(c == '\r')
  14. printf("enter");
  15. else
  16. printf("%c",c);
  17. }
  18. return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement