MajinVegeta20
Programmer
I was wondering how I would write coding if a person entered data exactly as follows below:
{(2,1),(3,2)}
And you had to read in only the numbers and discard the brackets and commas and you had to read it into a two dimensional array that would print an adjaceny matrix similar to this:
0 0 0 0
0 0 1 0
0 1 0 1
0 0 1 0
Thanks.
{(2,1),(3,2)}
And you had to read in only the numbers and discard the brackets and commas and you had to read it into a two dimensional array that would print an adjaceny matrix similar to this:
0 0 0 0
0 0 1 0
0 1 0 1
0 0 1 0
Thanks.