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?
#Task Manager
9 messages · Page 1 of 1 (latest)
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 <=
Oh ty i didn't saw that
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
Ayo i missed too much on operators damn
in my head, it was for i don't lose track of the id in the moment
but seeing rn ins't necessary