Category Archives: C++

Birthday operators

Today’s exercise in C++ is to implement various kinds of matrix products. Of course, since this is a C++ exercise, I must implement a matrix class (I feel that this is somehow a rite of passage). Naturally I’ve got mine … Continue reading

Posted in C++, Computers, Programming | 3 Comments

Memory management issues

I think the typical progression of one’s concern for memory management issues is like this: What’s memory management?  (Alternatively: What’s memory?) How is malloc() (or new) any different from declaring a new variable? If I can free() (or delete) a … Continue reading

Posted in C++, Computers, Programming | Leave a comment

How to make a pointer to a reference

In my previous post, I complained that one cannot make a reassignable reference in C++. Corollary to this is that a reference can never be uninitialized, since it is only in the statement that declares the reference can the compiler … Continue reading

Posted in C++, Computers, Programming | Leave a comment

Annoying restrictions in C++

I’m learning C++ this week. As seems always to be the case when I learn a new programming language (be it TeX, TikZ, or this), my first test project uses ridiculously advanced techniques and generates a lot of questions I … Continue reading

Posted in C++, Computers, Programming | Leave a comment