Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstring>
- using namespace std;
- int main()
- {
- int p;
- char s[256];
- cin>>p;
- cin.get();
- cin.get(s,256);
- int L=strlen(s);
- for(int i=0;i<L-p+1;++i)
- {
- for(int j=0;i>0&&j<i;++j)
- cout<<s[j];
- for(int j=i+p;j<L;++j)
- cout<<s[j];
- cout<<'\n';
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement