Search:

Type: Posts; User: jeanermand

Search: Search took 0.02 seconds.

  1. Replies
    15
    Views
    10,154

    I'm almost positive that this should work, I'm...

    I'm almost positive that this should work, I'm just having some difficulty adding the nodes to the new lists..

    I'm calling the split function in main in a loop

    for(r = 0; r < matrix->rows; r++)...
  2. Replies
    15
    Views
    10,154

    Or maybe something like this... void split(...

    Or maybe something like this...

    void split( MATRIX *matrix , NODE **list_1, NODE **list_2)
    {
    int r;


    for(r = 0; r < matrix->rows; r++)
    {
    AddToList(matrix->m[r],...
  3. Replies
    15
    Views
    10,154

    void split( MATRIX *matrix , NODE **list_1, NODE...

    void split( MATRIX *matrix , NODE **list_1, NODE **list_2)
    {
    int r, count;

    count = 0;
    for(r = 0; r < matrix->rows; r++)
    {
    if(count >= r)
    add to...
  4. Replies
    15
    Views
    10,154

    Oh I see.. so maybe something like void...

    Oh I see.. so maybe something like



    void split( MATRIX *matrix , NODE **list_1, NODE **list_2)
    {
    int r;

    for(r = 0; r < matrix->rows; r++)
    {
  5. Replies
    15
    Views
    10,154

    I've had a few days to dabble in this and...

    I've had a few days to dabble in this and unfortunately procrastination got the best of me. I tried combining the two bits in the same loop but all to no avail..

    Can you give me some hints as to...
  6. Replies
    15
    Views
    10,154

    Thank you! I managed to eventually split the...

    Thank you!

    I managed to eventually split the bottom half...
    the only catch being that if I do so, the top half won't split properly.

    I know I have to use new header nodes, but I figured I...
  7. Replies
    15
    Views
    10,154

    I've managed to successfully split the top half ...

    I've managed to successfully split the top half


    void split( MATRIX *matrix ) // must be changed
    {
    int r, s;
    NODE* pPre, *pNext, *pPre2, *pNext2;

    //split top half into...
  8. Replies
    15
    Views
    10,154

    Splitting a Matrix of Linked Lists

    So I have a square matrix composed of several linked lists, all containing random integers.
    The data diagram looks like this so far:
    11335

    Here's all the source code for now:



    #include...
Results 1 to 8 of 8