values stored in public member variables

When the object a1 of class matrix is instantiated, the constructor matrix::matrix correctly gets the values for both public member variables namely no_of_rows_ and no_of_cols_ respectively.

However, the public method transpose() doesn't read those values. Instead it prints out some apparently garbage values (e.g. -947286536 and 32767) for those public member variables. Would anyone know why?