Pointers General

Dealing with pointers that haven’t been created yet To determin if the pointer myFile has been created use (for instance can be useful when trying to say close a file in an error handler if its been created): if (myFile != nullptr)

Read More

Pointers, Handles and References

Modern C++ programs should almost always use vectors and iteriators in preference to the lower-level arrays and pointers, and strings to replace C-style array based character strings. Well designed programs use arrays and pointers only in the internals of class implementations where speed is essential. As well as being less powerful, C-style strings are the […]

Read More