If you really want to get the best performance from your c++ coding adventures, you’re gonna have to really get deep into the low-level experience. That means learning how to use pointers and directly accessing memory and data, which is always risky, but with care and proper practices, it shouldn’t even make you flinch. So here are some tips on how to master even c++ pointers and operators.
Usually when you’re accessing a pointer to a member of a class or object, you can do so in c++ like this:
//accessing member of object 10 in the someObject array/list someObject[10].member
The []
operator is no different than this: Continue reading “Tips and tricks for c++ pointers and operators”