I think manually allocating memory is better when running complex programs. I can create additional storage if I think I need it. But, the downside of it is it requires more time since the memory is allocated during runtime. .
Week 3 & 4.I somehow grasped how to use pointers. I think it is a useful tool when dealing with arrays because the exercises allowed me to realize that. But, I still prefer using “arr[]” because I am used to using that. .
Week 9-11.Having a background in C programming helped me transition to C++ programming, I guess. Sadly, I don’t know how to do file manipulation in C++ since I didn’t try to learn it yet. Maybe during the summer, I will expand my knowledge of C++. .
Week 12.Code reuse is an efficient tool when programming. I can make one class use the properties of one class through inheritance. It is an interesting feature of C++. I am looking forward to the future wherein I can use code reuse in my programs.
Week 6 and 7.The linked list exercise was so demanding. At first, I can’t grasp the idea behind it. So, I watched different videos about it. After finishing the exercise, I can say that I didn’t yet fully grasp how they work, but I can somehow use them. .
Week 8.I can name this week "bug week" since my program has many bugs on it. I was tired of debugging it, so I moved to the c++ exercises. I like random-access files more than sequential files because reading sequential files is so tiring. .
Week 13.From the module, I think polymorphism is just grouping classes with the same type. To relate them, we use inheritance. I think polymorphism is useful for classes that have the same essence. It will make the code cleaner and bugs can be easier to navigate. .
Week 5.After reading the course notes, I understand the usage of “malloc” and “free”. But, I think that I need an exercise that allows me to use these functions because understanding it through reading and understanding it through coding are two different things. .
My favorite version of the program is the enroll and drop option since they didn’t take a long time to program since I just copied the code from the course notes. Hehe😊.
You need to specifically point out the line. On the other hand, random-access files are easier to read and manipulate. Writing in random-access files use binary, while sequential file does not.
For instance, if you move a piece beyond the 8 x 8 table, then you are making an illegal move. This is the same with coding, you get segmentation faults. Also, a position of a chess piece is just like a 2d array index.
For example, it would be useful when creating a PVP game. Since players have the same variables (health, mana, etc.), polymorphism would be a useful tool here. I am looking forward to implementing polymorphism in ratava activity.
It was a fun and interesting activity. I had fun inputting different students in the program to see if there are any bugs on it. Based on what I read, linked lists are used in music players. I am interested in how linked lists are implemented on these music players. .