t
Size: a a a
t
t
D
t
class A{
public:
int p();
};
int A::p(){return 0;}
t
#include "union.h"
int A::p();
int A::p();
int A::p();
int A::p();
D
class A{
public:
int p();
};
int A::p(){return 0;}
D
#include "union.h"
int A::p();
int A::p();
int A::p();
int A::p();
О
#include <iostream>
#include <string>
/* Перевірка символів вхідного повідомлення на приналежність алфавіту. */
void check(string str);
using namespace std;
int main()
{
setlocale(0, "");
string str;
cout << "Enter your string: ";
getline(cin, str);
check(str);
return 0;
}
void check(string str)
{
for (int i = 0; i < str.size(); i++)
{
if (isalpha(str[i])) printf("%c is a letter!\n", str[i]);
else printf("%c is not a letter!\n", str[i]);
}
}
П
П
#include <iostream>
#include <string>
/* Перевірка символів вхідного повідомлення на приналежність алфавіту. */
void check(string str);
using namespace std;
int main()
{
setlocale(0, "");
string str;
cout << "Enter your string: ";
getline(cin, str);
check(str);
return 0;
}
void check(string str)
{
for (int i = 0; i < str.size(); i++)
{
if (isalpha(str[i])) printf("%c is a letter!\n", str[i]);
else printf("%c is not a letter!\n", str[i]);
}
}
D
t
D
t
О
AS
О
О
D
D