I have an array of pointers to char arrays or c-strings(that's my goal anyway) and I'm trying to pass the index of a certain string as an int parameter. ie:
I want to pass the index of "string 2" as a parameter in a function but referring to the string in the case that I don't know what index "string 2" is located at.
EDIT: so function DoSomething( int number);
DoSomething("string 2");
how would I do this, would I typecast it somehow or is there a built in operator to refer to a string's index number in the array?