Day 7 - A lot of changes
And there we are! After about.. a week from the last devlog and I’ve made some changes since then!
Vectors! Yay!
Now the entire code uses vectors instead of arrays!
At first I used arrays cause it was the only thing I knew, but I read some guides about vectors and I refactored the entire code to use them instead!
After doing this, I can easily implement merge sort and quick sort!
Problems
While reworking the code, I had quite some problems with the selection sort and insertion sort since it crashed the program when I tried to sort the values.
I tried everything, but once I found the problems, I didn’t know how to fix them.
So unfortunately, I had to use ChatGPT to help me fix them since I really didn’t know how.
(Every change I made with AI it’s tagged with the prefix //AI: in the comments of the code.)
I didn’t want to use AI cause I want to learn these things by myself and without any help of AI, after all I’m still learning and I said at first that this project it’s just a way for me to practice.
But I guess it’s fine to get help from time to time, I just need to not do it often and try by myself first!
That’s all for this devlog and see you in another devlog!
(Yeah, the screenshot is the same as the previous one since I didn’t change anything graphically, lol)
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.