Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/list.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ void List::print_menu() {
}

void List::add_item() {
cout << "\n\n\n\n\n\n\n\n";
cout << "\n\n";
cout << "*** Add Item ***\n";
cout << "Type in an item and press enter: ";

Expand All @@ -44,7 +44,7 @@ void List::add_item() {

list.push_back(item);

cout << "Successfully added an item to the list \n\n\n\n";
cout << "Successfully added an item to the list \n";
cin.clear();

print_menu();
Expand All @@ -57,6 +57,7 @@ void List::delete_item() {
for( int i=0; i < (int)list.size(); i++ ) {
cout << i << ": " << list[i] << "\n";
}

int choiceNum;
cin >> choiceNum;
list.erase(list.begin()+choiceNum);
Expand All @@ -69,7 +70,7 @@ void List::delete_item() {
}

void List::print_list() {
cout << "\n\n\n\n\n\n\n\n";
cout << "\n\n\n\n";
cout << "*** Printing List ***\n";

for( int list_index=0; list_index < (int)list.size(); list_index++ ) {
Expand All @@ -90,7 +91,7 @@ void List::print_list() {

bool List::find_userList() {
bool userFound = false;
cout << "\n\n\n\n\n\n\n\n";
cout << "\n\n\n\n";
cout << "*** Welcome " << name << " ***\n";

for ( int user_index=0; user_index < (int)mainList.size(); user_index++) {
Expand Down