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:
Tanisha Belkar 2022-02-02 11:04:52 +05:30 committed by GitHub
parent c1a9019d2a
commit 543d6e0135
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;