Anyone can help me to create this program?

Create a matrix A , whose elements Aij are the distance between point i and j. A number of points defined in a plane by means of their coordinates Xi and Yi, the number of points and their coordinates are input from a text file with the following structure
N
X1 , Y1
.....
Xn , Yn
closed account (48T7M4Gy)
A notice without question.

struct Point, Point p[], Point A[i][j], A[i][x] = Point[i] for all x

And that's it all bar the shouting :)
closed account (48T7M4Gy)
Blush, gulp ... ;)

I forgot, A[x][j] = Point[j] for all x
Can you please write down the program, I try it with this way you said and it didn't work also :/
closed account (48T7M4Gy)
Can you please write down the program

Unfortunately no, that's your job to write the program. If I did that I would get an angry letter from your examiner/teacher and they might come and treat my dog badly.

What I can do is help u if you like to show me your code so far. :)
Last edited on
Topic archived. No new replies allowed.