Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as Plain Text by NULLED ( 13 years ago )
#include "stdafx.h"
#include <iostream>

int _tmain(int argc, _TCHAR* argv[])
{
 char str[255];

 std :: cout << "Enter Your String : " << std :: endl;
 std :: cin >> str;

 for( unsigned int i = 0; i < ( unsigned int )strlen( str ); i++ )
  if( isdigit( str[ i ] ) ){
   for( unsigned int i_1 = i; i_1 <= ( unsigned int )strlen( str ); i_1++ )
    str[ i_1 ] = str[ i_1 + 1 ];
   i--;
  }

 std :: cout << "New String : " << str << std :: endl;
 
 system&#40; "PAUSE" &#41;;

 return 0;
}

 

Revise this Paste

Your Name: Code Language: