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 C++ by Pavel ( 15 years ago )
#include "stdafx.h"
#include <iostream>
using namespace std;
 
int _tmain(int argc, _TCHAR* argv[])
{
 setlocale (LC_CTYPE,"Russian");
  char a[10]="b14b58by3";

  cout<<"Исходный массив:"<<endl;
  for(int i=0; i<10; i++)
   cout<<a[i];
  for(int i=0;i<10;i++)
  {
      if(a[i]=='b')
   {
    if(a[i+1]>=48 && a[i+1]<=57)
     a[i]=a[i+1];
   }
   }
 cout<<"После преобразования:"<<endl;
   for(int i=0; i<10; i++)
   cout<<a[i];
  return 0;
}
 


  
 return 0;
}

 

Revise this Paste

Parent: 42181
Your Name: Code Language: