mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
chore: add exit as an option in the... (#1931)
...Linked List file algorithm. * Bug: Added exit condition to the linked list menu * revert back * fix: added exit condition to the linked list display menu * update Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
parent
c1a9019d2a
commit
543d6e0135
@ -233,6 +233,9 @@ int main() {
|
|||||||
std::cout << "\n\nEnter you choice : ";
|
std::cout << "\n\nEnter you choice : ";
|
||||||
std::cin >> choice;
|
std::cin >> choice;
|
||||||
switch (choice) {
|
switch (choice) {
|
||||||
|
case 0:
|
||||||
|
std::cout << "\nQuitting the program...\n";
|
||||||
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
std::cout << "\nEnter the element to be inserted : ";
|
std::cout << "\nEnter the element to be inserted : ";
|
||||||
std::cin >> s;
|
std::cin >> s;
|
||||||
|
Loading…
Reference in New Issue
Block a user