Not sure if uni work's assistance is allowed here, pls advise me if itsnt. Anyway, Im studying C and atm, I have problem dealing with file input/output. Have been trying hard to work out, but no luck so far
Im given a file with the format like this:
Code:
A, 1, B
B, 3, D, E, F
C, 1, D
D, 1, F
...
And here is the diagram:
So, basically it can be interpreted like this:
A depends on 1 other class : B
B depends on 3 other classes: D, E, F
...
Im thinking about
struct and array, but not sure if its the right method. Also, I have no idea how to read the file and write to memory with such format.
Can you give me a hint on it? I appreciate any input