Skip to content

Commit

Permalink
Changed from tabs to spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
ViktorPopp committed Oct 29, 2024
1 parent 505e5f5 commit 049d243
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions Source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ using namespace std;
bool shouldClose = false;

int main(int argc, char* argv[]) {
/* Initialize */
if (argc != 2) {
cout << "please enter a filename\n";
return 0;
}
/* Initialize */
if (argc != 2) {
cout << "please enter a filename\n";
return 0;
}

TodoList todoList(argv[1]);
TodoList todoList(argv[1]);

/* App loop */
while (!shouldClose) {
Expand All @@ -41,17 +41,17 @@ int main(int argc, char* argv[]) {
int indexNumber;
std::cout << "Enter an index number: ";
indexNumber = GetIntFromCin();
todoList.RemoveTodo(indexNumber);
todoList.RemoveTodo(indexNumber);
}

elif (inputstring == "check") {
int indexNumber;
std::cout << "Enter an index number: ";
indexNumber = GetIntFromCin();
todoList.CheckTodo(indexNumber);
}
std::cout << "Enter an index number: ";
indexNumber = GetIntFromCin();
todoList.CheckTodo(indexNumber);
}

elif (inputstring == "list") {
elif (inputstring == "list" || inputstring == "ls") {
todoList.ListTodos();
}

Expand All @@ -62,5 +62,5 @@ int main(int argc, char* argv[]) {
}


/* Terminate */
}
/* Terminate */
}

0 comments on commit 049d243

Please sign in to comment.