Implementing a matrix class through a hierarchy of Doubly Linked Lists
#I'd write a STL version of the whole thing when needed for any practical use...I'm just trying to grope the basics through this..
*I am choosing Doubly linked lists because the matrix would frequently need to remove/add/interchange..etc ..rows & columns.
&& It will typically not go beyond 4*4 order...so access time will be well and good.. Any better Idea?
The barebone structure of the code would be like:->
At this point, I can not imagine what I should put inside the matrix class...
token* pos; //post
//Some funcs to be added as required
class line //i.e a single row or column ....
//same as above
if I put it in this way..
....I can't figure out how the constructor should behave...
line* r_pre; // for rows
line* c_pre; // for columns
Finally.. is there a better way to do the whole thing?