ON SEGMENTATION FAULTS AND CORE DUMPINGS…

NOTES: I intend to introduce code widgets sometime in the future. YAP. I intend to write silly codes you wont even believe exists. So if you wanna chill with me here that’s fine. Remember, its code therapy sessions…

This CTS entry is about C++.

I just did a project that and this was my comment for that project. Fits directly with Code Therapy sessions…(as these are quite therapeutic after spending so much time filing SHIT against SHIT I don’t deserve. ). here is the comment:

…/*Comments : Decided to use vector arrays rather than dynamic 2D arrays because it was more synonymous with what happens when straight lines throw balls because they cant throw curves. I have more respect for vectors after this and adopting more knowledge of it with R */…

Now here is the funny thing, until 2 days ago I didn’t know how vectors worked in C++ but I knew from math and the R involvement. If you knew calculus as much as my knowledge of it can’t be represented in any reasonable or decent manner, you will know there is a huge difference between lines, curves and balls. But if you know physics as much as I do learning mainly on my own, you know that when you call them vectors the differences or as you may differential leaps are exponential. So I just had to do it that way. It was important and so I took my time learning it from the little time I had and 00BOY00BOY was it finally worth it?

I chose to use vectors because vectors in C++ have quite amazing functions. I chose vectors because of the vector.resize(). This function has the habit of adding 0’s to empty slots when you call it(SHOULD REMIND YOU OF THE DISCUSSING ON THE KHAN ACADEMY EQUATION). Now this is important because when you call empty slots it is reasonable to think you’re going to fill IT with something you already have. And that’s why it became immensely WORTHWHILE that when I removed the vector.resize()(you gotta love online compilers. They are silent witnesses.),I GOT AN AMAZING ERROR MESSAGE I GOT(amazing, don’t you think my readers?):