2025-11-06 11:43:11 +07:00
|
|
|
#ifndef ADVANCED_H
|
|
|
|
|
#define ADVANCED_H
|
2025-11-07 21:25:32 +07:00
|
|
|
#include <iostream>
|
|
|
|
|
#include <iostream>
|
|
|
|
|
#include <chrono>
|
|
|
|
|
#include <unistd.h>
|
|
|
|
|
#include <string>
|
2025-11-14 23:45:04 +07:00
|
|
|
#include <vector>
|
|
|
|
|
|
2025-11-07 21:25:32 +07:00
|
|
|
struct childStruct
|
|
|
|
|
{
|
2025-11-14 23:45:04 +07:00
|
|
|
int age;
|
|
|
|
|
std::string name;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
struct parentStruct
|
|
|
|
|
{
|
|
|
|
|
int age;
|
|
|
|
|
std::string name;
|
|
|
|
|
childStruct childArr[100];
|
2025-11-07 21:25:32 +07:00
|
|
|
};
|
|
|
|
|
|
2025-11-14 23:45:04 +07:00
|
|
|
struct familyStruct
|
2025-11-07 21:25:32 +07:00
|
|
|
{
|
2025-11-14 23:45:04 +07:00
|
|
|
parentStruct dad;
|
|
|
|
|
int numberOfNumber;
|
|
|
|
|
char familyName[50];
|
|
|
|
|
parentStruct mom;
|
2025-11-07 21:25:32 +07:00
|
|
|
};
|
2025-11-06 11:43:11 +07:00
|
|
|
|
|
|
|
|
int factorial(int n);
|
|
|
|
|
int fibonacci(int n);
|
|
|
|
|
|
|
|
|
|
#endif
|