*this is a homework ,deadline is in 24hours*

I

**mplement a sorting algorithm for a list of points. A point is "smaller" than the other if it is closer to the origin.**

The point coordinates are integers between 0 and 100.

tasks:

1. Define the structure to represent the points (class or struct).

2. Save the related points in a linked list. The points are read from the keyboard and the user will be guided with the appropriate messages.

3. Implement the sorting algorithm in ascending order. Points will be displayed again on the screen after sorting.

4. Check if the points are collinear or not. A corresponding message will be displayed.

example:

(1,1), (2,2), (3,3) Collinear or (0,1), (0,2), (0,7) Collinear

(2, 2), (3,3), (5,2) not collinear

The point coordinates are integers between 0 and 100.

tasks:

1. Define the structure to represent the points (class or struct).

2. Save the related points in a linked list. The points are read from the keyboard and the user will be guided with the appropriate messages.

3. Implement the sorting algorithm in ascending order. Points will be displayed again on the screen after sorting.

4. Check if the points are collinear or not. A corresponding message will be displayed.

example:

(1,1), (2,2), (3,3) Collinear or (0,1), (0,2), (0,7) Collinear

(2, 2), (3,3), (5,2) not collinear

it's mandatory that i need to use this class file and something tells me it needs to be edited in order for it to run :

http://textuploader.com/x3u3

This is what i did so far

http://textuploader.com/x3ui

*I just dont know how can i "link "a node type to a int value.Help me pls .*