royhat
Предварительный просмотр (4 стр.)
Прокрутите вниз 👇
О "royhat"
#include using namespace std; class royhat { public: int number; royhat *next; }; int main() { royhat *head = null; royhat *lastptr = null; short on = -1; while (1) { cout > on; if (on == 0) { system("cls"); break; } else if (on == 1) { system("clear"); royhat *korsatkich = new royhat; int value = -1; cout > value; korsatkich->number = value; korsatkich->next = null; if (head == 0) { head = korsatkich; lastptr = korsatkich; system("clear"); continue; } lastptr->next = korsatkich; lastptr = korsatkich; system("clear"); continue; } else if (on == 2) { royhat *korsatkich = null; system("clear"); if (head == 0) { cout number next == 0) { break; } // korsatkich=korsatkich->next; } cout > index; …
Этот файл содержит 1 стр. в формате DOCX (19,7 КБ). Чтобы скачать "royhat", нажмите кнопку Telegram слева.