Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <stdio.h>
- #include <string.h>
- using namespace std;
- void String(char a[])
- {
- char eng[] = {"qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM"},*uch,*ulet,*unew;
- for (uch=a;uch<a+strlen(a);uch++){
- for (ulet=eng;ulet<eng+strlen(eng)&&*ulet!=*uch;ulet++);
- if (ulet != eng+strlen(eng))
- {
- for(unew = a+strlen(a)+1 ; unew > uch; unew--)
- *(unew+1) = *unew;
- *(uch) = '*';
- *(uch+1) = '*';
- }
- }
- }
- int main()
- {
- char a[30];
- puts("Enter string");
- gets(a);
- String(a);
- puts(a);
- }
Add Comment
Please, Sign In to add comment