#include "stdafx.h"
#include <iostream>
bool exist[128];
using namespace std;
int main()
{
setlocale(LC_ALL, "Russian");
char str[256];
cout << "Введите строку:";
cin >> str;
for (int i = 0; str[i]; i++)
if ( !exist[ str[i] ] )
{
cout << str[i];
exist[ str[i] ] = true;
}
cout << endl;
system("pause");
return 0;
}