Skip to content

Instantly share code, notes, and snippets.

#include <iostream>
using namespace std;
const int MAX_LEN = 100;
const char* expr;
int pos = 0;
bool is_digit(char ch);
char peek();
#include <iostream>
using namespace std;
const int MAX_LEN = 100;
class Parser {
const char* expr;
int pos;
#include <cstdio>
#include <cstdlib>
// Аналог strlen, считает длину C-строки
int my_strlen(const char* str) {
int len = 0;
while (str[len] != '\0') {
++len;
}
return len;
#include <cstdio>
#include <cctype>
bool isVowel(char ch) {
if (ch >= 'A' && ch <= 'Z') ch += 'a' - 'A';
return ch == 'a' || ch == 'e' || ch == 'i' || ch == 'o' || ch == 'u' ||
ch == 'а' || ch == 'е' || ch == 'є' || ch == 'и' || ch == 'і' ||
ch == 'ї' || ch == 'о' || ch == 'у' || ch == 'ю' || ch == 'я';
}
#include <iostream>
#include <fstream>
using namespace std;
const int NAME_SIZE = 50;
struct Student {
char name[NAME_SIZE];
int age;
#include <iostream>
#include <fstream>
#include <cctype>
using namespace std;
bool isVowel(char ch) {
ch = tolower(ch);
return ch == 'a' || ch == 'e' || ch == 'i' || ch == 'o' || ch == 'u' ||
ch == 'а' || ch == 'е' || ch == 'є' || ch == 'и' || ch == 'і' ||
1)
#include <iostream>
using namespace std;
struct Student {
char* name;
unsigned short age;
float averageGrade;
};
#include <iostream>
using namespace std;
struct WashingMachine
{
char brand[50];
char color[20];
float width;
float length;
float height;
#include <iostream>
using namespace std;
int main() {
const int n = 5;
int A[n], B[n], C[n];
cout << "Enter the elements of array A: ";
1)
#include <iostream>
int main() {
char arr[11];
std::cout << "Введіть рядок з 10 латинських маленьких літер: ";
std::cin >> arr;
int length = 0;