#include <iostream>
#include <string>
#include <cctype>
#include <algorithm>
int main()
{
std::string abc = "";
std::string name;
std::cin >> name;
for (const char &character : name)
abc.erase(std::remove(abc.begin(), abc.end(), tolower(character)), abc.end());
}
for (const char &character : abc)
std::cout << character << ' ';
std::cout << std::endl;
return 0;
#include <string.h>
using namespace std;
#define MAX 128
char str[MAX], alf[MAX];
puts("Input name: ");
gets(str);
strlwr(str);
for(int i = 0; i <= 'z' - 'a'; i++)
alf[i] = 'a' + i;
for(int i = 0; i < strlen(str); i++)
if ((str[i] >= 'a') && (str[i] <= 'z'))
alf[str[i] - 'a'] = '0';
cout << "Letters that are not in the name: ";
if (alf[i] != '0')
cout << alf[i] << " ";
#include <iostream>
#include <string>
#include <cctype>
#include <algorithm>
int main()
{
std::string abc = "";
std::string name;
std::cin >> name;
for (const char &character : name)
{
abc.erase(std::remove(abc.begin(), abc.end(), tolower(character)), abc.end());
}
for (const char &character : abc)
{
std::cout << character << ' ';
}
std::cout << std::endl;
return 0;
}
#include <iostream>
#include <string.h>
using namespace std;
#define MAX 128
char str[MAX], alf[MAX];
int main()
{
puts("Input name: ");
gets(str);
strlwr(str);
for(int i = 0; i <= 'z' - 'a'; i++)
alf[i] = 'a' + i;
for(int i = 0; i < strlen(str); i++)
if ((str[i] >= 'a') && (str[i] <= 'z'))
alf[str[i] - 'a'] = '0';
cout << "Letters that are not in the name: ";
for(int i = 0; i <= 'z' - 'a'; i++)
if (alf[i] != '0')
cout << alf[i] << " ";
return 0;
}