Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstring>
- using namespace std;
- void iznemejs(char* smas, char* &bezcip){
- int skait=0;
- for (int i=0; i<strlen(smas)+1;i++){
- if (smas[i]< '0' || smas[i] > '9') {
- bezcip[skait]=smas[i];
- skait++;}
- }
- }
- int main()
- {
- char* a="6666a";
- char* b = new char[strlen(a) + 1];
- iznemejs(a,b);
- cout << a << endl;
- cout << b;
- //cout << b;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement