Курсовая работа: Односвязный список на основе указателей
#include "code.h"
using namespace std;
int main() {
List aList;
char temp[50];
bool exit = false;
for (;;) {
int choice = menu();
switch(choice) {
case (1):
aList.Insert();
break;
case (2):
cout<<"\nEnter name: "; cin>>temp;
aList.Insert(temp, aList.GetHead());
break;
case (3):
cout<<"\nEnter name: "; cin>>temp;
aList.Remove_(temp);
break;
case (4):
aList.Print(aList.GetHead());
break;
case (5):
exit = true;
break;
default:
cout<<"\n-----Try to enter defined keys!-----\n";
break;