I've been building a basic matrix class (based on Capper's book) to do some other work. While testing the class and functions, I noticed that the result I get for my transpose function changes whether or not it is displayed (using cout) before I use my multiply function. For example, if I do things in this order:
"transpose matrix A, multiply 2 (other) matrices, display transpose(A)"
transpose(A) comes out wrong but if the code executes in this order: