Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include"stdafx.h"
- #include<iostream>
- #include<stdio.h>
- using namespace std;
- int main()
- {
- char s[16] = "abcdefg*abcdefg";
- for (int i = 0; i < 17; i++)
- {
- if (s[i] = '*');
- for (int j = 0; j < i; j++)
- {
- delete s[j];
- }
- for (int i = 0; i < 17; i++)
- cout << s[i] << "0";
- }
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement