Does every part of your vector struct get used? I'm going to make my own as more...

Lane Beals Answered 2 answers
Question by Lane Beals 3 years ago

Question

Does every part of your vector struct get used? I'm going to make my own as more C practice/preparation before continuing on with the course, and was wondering if I needed to implement every part. There are common important parts of a vector type, such as the beginning, end, push back, insert, pop, etc that will need to be implemented. So I'm just wondering if there are any parts that are not necessarily required.

Answers

Answered by Daniel McCarthy

Instructor

Hello,
Not everything gets used but you dont need to write anything anyway, its a quick copy and paste if you watch from the start of the course youll find it, I show you where to find the vector files. We dont implement that functionality ourselves as its not related to compiler dev

Thanks

Answered by Daniel McCarthy

Instructor

If you want to make your own vector to train your C your welcome but I recommend only using the vector code as seen on this course for the actual compiler course otherwise if something goes wrong your going to not know if it was your vector or not