#Task Manager

9 messages · Page 1 of 1 (latest)

rose isle
#

I am learning with learncpp, but i know kinda how a PL works in general(logic), so i asked to chatgpt how to do structs and a "array" i am not sure if it is a array, https://github.com/Meneko/taskManager but there is, how could i improve it the code in general?

GitHub

Contribute to Meneko/taskManager development by creating an account on GitHub.

lime pike
#

Your listTasks function will list one task too many, if you ask it to listTasks(1) it will show you two, because it gives you tasks[0] and tasks[1]

#

You should be using < instead of <=

rose isle
lime pike
#

You also use <= instead of < in main.cpp and need to tasksQuantity -= 1 as a result, if you use < you won't need to subtract one

#

You don't need taskIdentification -= 1 in main.cpp either, `taskIdentification isn't used after that

rose isle
#

Ayo i missed too much on operators damn

rose isle
#

but seeing rn ins't necessary