CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8

Threaded View

  1. #1
    Join Date
    Mar 2003
    Posts
    29

    Strings in Linked List

    I have problem in linked list. When I compile and run the below code I have getting the following out put.

    NM9
    10.000000,11.000000,12.000000,13.000000

    NM9
    11.000000,12.000000,13.000000,14.000000

    NM9
    12.000000,13.000000,14.000000,15.000000

    NM9
    13.000000,14.000000,15.000000,16.000000

    NM9
    14.000000,15.000000,16.000000,17.000000

    NM9
    15.000000,16.000000,17.000000,18.000000

    NM9
    16.000000,17.000000,18.000000,19.000000

    NM9
    17.000000,18.000000,19.000000,20.000000

    NM9
    18.000000,19.000000,20.000000,21.000000

    NM9
    19.000000,20.000000,21.000000,22.000000

    Which I expected to be like this.

    NM0
    10.000000,11.000000,12.000000,13.000000

    NM1
    11.000000,12.000000,13.000000,14.000000

    NM2
    12.000000,13.000000,14.000000,15.000000

    NM3
    13.000000,14.000000,15.000000,16.000000

    NM4
    14.000000,15.000000,16.000000,17.000000

    NM5
    15.000000,16.000000,17.000000,18.000000

    NM6
    16.000000,17.000000,18.000000,19.000000

    NM7
    17.000000,18.000000,19.000000,20.000000

    NM8
    18.000000,19.000000,20.000000,21.000000

    NM9
    19.000000,20.000000,21.000000,22.000000

    I have attached the code. Could any one please tell me what is wrong. I am getting the values correctly as I wanted but not the string.

    Thanks and Regards,
    Abbas
    Attached Files Attached Files
    • File Type: c tes.c (1.1 KB, 101 views)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured