How do I make an array (or an abstract data type) which can hold different data types? Then use those data types to create instances.
I want to do the following:
int arrayType[3] = {bool, int, char};
/*arrayType[0]*/ myBool = true;
/*arrayType[1]*/ myInt = 2;
/*arrayType[2]*/ myChar = "a";