SHARE
TWEET

Untitled

a guest Dec 13th, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top