Advertisement
Guest User

Untitled

a guest
Aug 25th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. char* Word::operator!()
  2. {
  3. cout << "im in" << endl;
  4. for (int i = 0; i < Wsize; i++) {
  5. if (word[i] >47 && word[i] < 58) {
  6. int caunt = word[i];
  7. for (int z = 0; z < 9; z++) {
  8. caunt++;
  9. if (caunt = 57) {
  10. caunt = 48;
  11. }
  12. }
  13. word[i] = caunt;
  14. }
  15. if (word[i] < 123 && word[i]>96) {
  16. int caunt = (word[i] - 31);
  17. for (int z = 0; z < 22; z++) {
  18. caunt++;
  19. if (caunt = 91) {
  20. caunt = 65;
  21. }
  22. }
  23. word[i] = caunt;
  24. }
  25. if (word[i] < 91 && word[i]>64) {
  26. int caunt = (word[i] + 31);
  27. for (int z = 0; z < 22; z++) {
  28. caunt++;
  29. if (caunt = 122) {
  30. caunt = 97;
  31. }
  32. }
  33. word[i] = caunt;
  34. cout << word[i];
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement