The program I'm writing has a number of structures that varies depending on a number of factors, the main point being that I am unable to predict how many of these structs there will be so the program creates them itself.
the structs look like this;
public struct boardState
{
public int structid;
public char[] state;
}
How can I get the program to name these structs without me explicitly giving it a name?
Ideally, there would be an int called structNum that keeps track of how many structs have been made and then any new structs would be named based on the value of structNum, but I'm not sure if this is something that can done, is there a way or can you suggest a better way?
Thank you.