Welcome to my blog
Hello and welcome to my blog. Here I will be writing about my experiences while I am enrolled on my MSc in Computer Game Engineering. I will be blogging about what I'm learning, what games I'm playing and other game's related comments.
Tuesday, 26 October 2010
Success
For the last day and a half I've been working on creating a 2d array on the heap. This 2d array is used as a matrix to perform matrix manipulation eg transpose, turn an MxN matrix to an MxM matrix etc.
I decided to create this using classes (which then turned to a template as practise). I had a problem of whenever I use a function outside the main it caused an error when returning the matrix. It took me a while to work out that this was the problem and I wasn't sure how to fix it once I had. But after speaking with my coursemates and my lecture I learnt that I needed a copy constructor since my destructor was deleting the Matrix.
This has now being done...onward so operator overloading.
I decided to create this using classes (which then turned to a template as practise). I had a problem of whenever I use a function outside the main it caused an error when returning the matrix. It took me a while to work out that this was the problem and I wasn't sure how to fix it once I had. But after speaking with my coursemates and my lecture I learnt that I needed a copy constructor since my destructor was deleting the Matrix.
This has now being done...onward so operator overloading.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment