hello,i have a problem in my math project.
my project is to write a program that read set of element and its relation. the input data will be from text file.(Set<space>Relation).
{1,2,3} {(1,1),(2,2),(3,3),(1,2),(1,3),(2,3)}
i have no problem reading text file into the program but im stuck when i want to try to put the relation into the two dimension array.
for example
{(1,1),(2,2),(3,3),(1,2),(1,3),(2,3)}
the two dimension array have to be like this.
col[0][1][2]
[0] 1 1 1
[1] 1 1
[2] 1
i don't know how to set one into two dimension array because there are various relation in the text file.
does anyone knows how to solve this problem?
please,help me..
thanks~