Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string.h>
- using namespace std;
- char* USUN_MALE_1(char t[])
- {
- int i = 0;
- while (t[i] != '\0')
- if (t[i] >= 'a' && t[i] <= 'z')
- strcpy(&t[i], &t[i + 1]);
- else
- i++;
- return t;
- }
- int main()
- {
- char tekst[] = "aaaaaDDDDDDffffffDDDDDDGGGG";
- cout << "Przed: " << tekst << "|" << endl;
- cout << "Po: " << USUN_MALE_1(tekst) << "|" << endl;
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement