Originally Posted by
VasilP
Hello, I have one theoretical question.
I have a project (C language) where I implement multiple operations over a spreadsheet, that looks like this (and will be given in a .txt file):
EXAMPLE:
Exercise : Points : Project
First programs: 0:
Loops, types: 0:
Arrays: 0:
Function 1: 0:
Structures: 2:
Indicators: 2:
Function 2: 1:
Malloc, dbg: 2:
: 0:
: 0:
Iteration, recursion: 2:
Dynamic structures: 2:
":" will separate individual cells.
Operations that I have to implement will be, for example, to delete specific row, add new column, change value of cell and so on...
What would be the best data structure to use for this kind of spreadsheet?
I tried to do it with an array, but in case of, for example, resizing table or adding new cells, I have to move all elements and that is not really efficient. I'm sure there's a better way.
Thanks for any help.