У меня проект, в котором есть меин, и через свитч переключение заданий
int main() {
cout << "select your laboratory\n";
cout << "First task - 1\nSecond task - 2\nThird task - 3\n Fourth task - 4";
int select;
cin >> select;
switch (select) {
case 1: task_1();
break;
case 2: task_2();
break;
case 3: task_3();
break;
case 4: task_4();
break;
}
}
int main() {
cout << "select your laboratory\n";
cout << "First task - 1\nSecond task - 2\nThird task - 3\n Fourth task - 4";
int select;
cin >> select;
switch (select) {
case 1: task_1();
break;
case 2: task_2();
break;
case 3: task_3();
break;
case 4: task_4();
break;
}
}