Please tell me how make add, sub matriks in c++ using link list ?
I have a problem. I want to make,
2 matriks dinamic than add, sub the matrik.
But using link list ?
Sorry my english's bad.
Thank's
Re: Please tell me how make add, sub matriks in c++ using link list ?
Quote:
Originally posted by putu-82
I have a problem. I want to make,
2 matriks dinamic than add, sub the matrik.
But using link list ?
Sorry my english's bad.
Thank's
No. Don't use a linked list for a matrix. Use a vector of vectors. Or I suppose if you want to write the whole works yourself, use a linked list of linked lists.
Make one list hold a pointer to the head of another list.
Make the second list hold the data.
Quzah.