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
