![]() |
|
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Newbie
|
Circularly Linked Lists
warm greetings,
I have this assignment due next Friday and i'm really strugling with solution. I'm new to programming and this doesnt make it any easier. The thing is that i have to read from file ( these file contain sting and two doubles) in a line. (City name and its coordinates - x and y). I've done the part of reading from the file but now i have to store those values in circularly linked list. The first node has to be the lowest in alphabetical order from the city names in file. With the rest of them i need to compare the distance and print the shortest one (travelling salesman problem). So i was just wondering if someone would be able to help me here. Im not including any codes here cause im not sure which part of it would be useful. I know that i have to create new node and then add it to the list but as i said im not familiar with it too much. thank you. |
|
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|