Is it possible to make variable number of variables? For instance, say I want to declare some unknown number of integers, is there a way to have the code automatically declare
int n1;
int n2;
.
.
.
int nx;
where x is the final number of variables required.
A potential application requiring this would be reading a .csv file with unknown number of rows and columns. Right now, the only way I can think to do this without variable number of variables is either a 2D vector, or coding in more columns than possibly can be in any input file the program receives