I'm trying to write a simple (console/text based) spreadsheet program. I'm a relative novice.
I have written programs before where the 2D 'box' was of one data type only (int, float, char etc). Now I need the spreadsheet to be able to store different data types in the cells.
I have a little knowledge of templates but I cannot figure out how to link my 2D vector to said input values of the cells (if that makes any sense).
I'd appreciate any help.
What I have tried:
I have tried using smart pointers but I don't really know much about them and failed miserably.