Advertisement
Guest User

Untitled

a guest
Jan 18th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #include <iostream>
  2. #include <string.h>
  3. using namespace std;
  4.  
  5. char* USUN_MALE_1(char t[])
  6. {
  7. int i = 0;
  8. while (t[i] != '\0')
  9. if (t[i] >= 'a' && t[i] <= 'z')
  10. strcpy(&t[i], &t[i + 1]);
  11. else
  12. i++;
  13. return t;
  14. }
  15. int main()
  16. {
  17. char tekst[] = "aaaaaDDDDDDffffffDDDDDDGGGG";
  18. cout << "Przed: " << tekst << "|" << endl;
  19. cout << "Po: " << USUN_MALE_1(tekst) << "|" << endl;
  20. system("pause");
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement