Thread: Please tell me how make add, sub matriks in c++ using link list ?

  1. #1
    Registered User
    Join Date
    Nov 2003
    Posts
    2

    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

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826

    Re: Please tell me how make add, sub matriks in c++ using link list ?

    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.
    Hope is the first step on the road to disappointment.

  3. #3
    Registered User
    Join Date
    Nov 2003
    Posts
    2

    You have the source code

    You have the source code,
    If you have the sorce code please tell me.

    Thank ....

  4. #4
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    >If you have the sorce code please tell me.
    I have the source code.
    My best code is written with the delete key.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Link List math
    By t014y in forum C Programming
    Replies: 17
    Last Post: 02-20-2009, 06:55 PM
  2. Linked List, Please Help!
    By CodeMonkeyZ in forum C Programming
    Replies: 5
    Last Post: 02-17-2009, 06:23 AM
  3. List class
    By SilasP in forum C++ Programming
    Replies: 0
    Last Post: 02-10-2002, 05:20 PM
  4. singly linked list
    By clarinetster in forum C Programming
    Replies: 2
    Last Post: 08-26-2001, 10:21 PM