The code is c + +
Application:
//delete duplicate characters
//given a string, the string in all front and repeat extra character deletion, the rest of the characters, the output string after processing, need to make sure that sequence of characters and is case sensitive,
#include
#include
using namespace std;
Void main ()
{
String a;
String b;
cin> a;
Int flag=0;
B [0]=[0];
Int j=0;
Int I=1;
While (i
For (int k=0; K
If (a==b [k] [I])
{
Flag=1;
break;
}
}
If (flag==1)
i++;
The else
{
j++;
B=[j] a [I];
i++;
}
}
Cout}
Run the debug string memory has a problem