I'm coding a C++ function that accepts a string, an array and the size of the array. It looks like this:
bool funcname (string skey, string sArr[], int arrSz)
I want to pass several array data types, such as double
, char
, long int
, etc. Is it right to use string
as data type for the array? Or is there a general data type that I can use?
Thanks in advance.