Budget: 100 UAH Deadline: 1 day
Здравствуйте, готова прокомментировать каждую строчку кода, к вечеру будет готово, буду рада помочь)
потрібно написати коментарі для коду і описати як він працює.
сам код
#include <iostream>
#include <string>
using namespace std;
class info
{
public:
virtual void show() = 0;
};
class unit : public info
{
public:
unit * parent = NULL;
unit *next = NULL,
*next2 = NULL;
string name,
secondName,
IDCode,
age;
unit(string _n, string _sn, string _ID, string _a)
{
name = _n;
secondName = _sn;
IDCode = _ID;
age = _a;
}
unit(string _n, string _sn, string _ID, string _a, unit *_p)
{
name = _n;
secondName = _sn;
IDCode = _ID;
age = _a;
parent = _p;
}
void init_next(string _n, string _sn, string _ID, string _a)
{
next = new unit(_n, _sn, _ID, _a, this);
}
void init_next2(string _n, string _sn, string _ID, string _a)
{
next2 = new unit(_n, _sn, _ID, _a, this);
}
void show_once()
{
cout << name << " " << secondName << " " << IDCode << " " << age << endl;
}
void show()
{
show_once();
if (next != NULL)
{
next->show();
}
if (next2 != NULL)
{
next2->show();
}
}
unit search(string _n, string _sn)
{
if ((name == _n) && (secondName == _sn))
{
return *this;
}
else if (next != NULL || next2 != NULL)
{
if (next != NULL)
{
return next->search(_n, _sn);
}
if (next2 != NULL)
{
return next2->search(_n, _sn);
}
}
else
{
cout << "Нічого невдалось знайти по вашому запиту " << endl;
}
}
};
void dialogmenu(unit _m)
{
int temp;
system ("chcp 1251> nul");
cout << "Існуюче генеалогічне дерево" << _m.name << endl;
cout << "1. Створити нове генеалогічне дерево.\n2.Показати існуюче генеалогічне дерево\n3.Пошук по існуючому генеалогічному дереві\n4.Добавити ліву гілку генеалогічного дерева\n5.Добавити праву гілку генеалогічного дерева\n";
cin >> temp;
switch(temp)
{
case 1:
{
string name;
string secondName;
string IDCode;
string age;
cout << "Input name" << endl;
cin >> name;
cout << "Input sName" << endl;
cin >> secondName;
cout << "input ID" << endl;
cin >> IDCode;
cout << "input age" << endl;
cin >> age;
unit nUnit(name, secondName, IDCode, age);
dialogmenu(nUnit);
break;
}
case 3:
{
string tempname, tempSName;
cout << "Введіть імя яке потрібно знайти" << endl;
cin >> tempname;
cout << "Введіть прізвище яке потрібно знайти" << endl;
cin >> tempSName;
_m.search(tempname, tempSName);
break;
}
case 4:
{
string name;
string secondName;
string IDCode;
string age;
cout << "Input name" << endl;
cin >> name;
cout << "Input sName" << endl;
cin >> secondName;
cout << "input ID" << endl;
cin >> IDCode;
cout << "input age" << endl;
cin >> age;
_m.init_next(name, secondName, IDCode, age);
break;
}
case 5:
{
string name;
string secondName;
string IDCode;
string age;
cout << "Input name" << endl;
cin >> name;
cout << "Input sName" << endl;
cin >> secondName;
cout << "input ID" << endl;
cin >> IDCode;
cout << "input age" << endl;
cin >> age;
_m.init_next2(name, secondName, IDCode, age);
break;
}
}
dialogmenu(_m);
}
int main()
{
unit main("Name1", "SecondNameOne", "ID1", "Age1");
main.init_next("Name2", "SecondName2", "ID2", "Age2");
main.init_next2("Name2-2", "SecondName2-2", "ID2-2", "Age2-2");
main.next->init_next("Name3", "SecondName3", "ID3", "Age3");
main.next->init_next2("Name3-2", "SecondName3-2", "ID3-2", "Age3-2");
main.next2->init_next("Name4", "SecondName4", "ID4", "Age4");
main.next2->init_next2("Name4-2", "SecondName4-2", "ID4-2", "Age4-2");
dialogmenu(main);
system("pause");
return 0;
}
Budget: 100 UAH Deadline: 1 day
Здравствуйте, готова прокомментировать каждую строчку кода, к вечеру будет готово, буду рада помочь)
Budget: 150 UAH Deadline: 1 day
Сделаю за 1 день. Напишу подробно комментарии к каждой строке кода.
Budget: 300 UAH Deadline: 1 day
Здраствуйте. Могу Вам помочь. Обращайтесь. Проффесионально занимаюсь разаботкой софта.
Budget: 120 UAH Deadline: 1 day
Здравствуйте, прокомментиру подробно этот код, не проблема, буду рад помочь
Ну вроде же элементарная прога и алгоритм .. Что тут комментировать? Каждую строчку?
Тю!
Прокоментуєш прості стрічки з оголошенням змінних, присвоєнням значень, вводом/виводом данних і від коду нічого не залишиться.
Очі бояться, а руки роблять.
What needs to be done: develop an EXE application in C++; create a modern graphical interface according to my design; implement the program logic; ensure stable operation on Windows 10 and Windows 11; provide the source code in Visual Studio (.sln, .vcxproj). I already have: interface design (screenshots attached); program operation concept; list of features to discuss with the performer. Requirements for the performer: confident knowledge of C++; experience with Microsoft Visual Studio; experience in developing Windows Desktop applications; neat and readable code; willingness to maintain communication during development. Please, in your response send: examples of your EXE programs; experience with C++; estimated completion time; cost of work.
Good day It is necessary to create a module that will work with the Firebird database in C++ for selling products. There are examples of ready-made solutions and a description of the module's functionality. Main functions: authorization, selection of products on the screen from groups/subgroups, transition to the cart, payment by card, and printing the receipt. The program must work on Windows 10 and above, using the existing database.