Hi. So im confused as to how I go about doing this. I have preset arrays/classes of data. I'm trying to take whatever the user inputs and then have the program match it with an array of that name. Then have the program call upon that matched array. For example:
I have a formula where I want the data from the array punched into the formula based on what the user types in. Basically using sstream or some other means to match what they typed against my arrays. And have that array selected to be punched into the formula
I'm not too sure what functionality you're going for, but you could just take some input, and tie that variable to your arrays through a condition. Like, if(userinput == "fire") use fireArr;
conditions could work nicely actually. And Aceix, thank you for writing that out. That gives me a more broader sense on how to do this. As to why it crashes idk o .o my best guess is you would be calling for a variable in the array which does not exist in your else clause.