Advertisement
Guest User

Untitled

a guest
Dec 13th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #include"stdafx.h"
  2. #include<iostream>
  3. #include<stdio.h>
  4. using namespace std;
  5. int main()
  6. {
  7.  
  8. char s[16] = "abcdefg*abcdefg";
  9. for (int i = 0; i < 17; i++)
  10. {
  11. if (s[i] = '*');
  12. for (int j = 0; j < i; j++)
  13. {
  14. delete s[j];
  15.  
  16. }
  17. for (int i = 0; i < 17; i++)
  18. cout << s[i] << "0";
  19. }
  20.  
  21.  
  22.  
  23.  
  24.  
  25. system("pause");
  26. return 0;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement