#include <iostream>
#include <string.h>
#include <algorithm>
# define N 100
using namespace std;
int main()
{
char A[N];
unsigned char APP[256] = {0};
cout << "Insert string" << endl;
cin.getline(A,100);
for(int i=0; i < strlen(A); ++i)
{
unsigned char B = A[i];
if(!APP[B])
{
++APP[B];
cout << B;
}
}
return 0;
}
/*char eliminazione(char,char)
{
}*/`
I have to put the for in the "delete" function calling the value B and print it in main, do you know how to do it?
Given a string A read from the keyboard, create a function in C ++ language that calculates a second string B obtained from the first by deleting all the characters that appear more than once. The resulting string must therefore contain the characters of the first string, in the same order, but without repetitions.