so im trying to create an array with const char everytime the function is called i want to add to my array like a strtok
so if i to wanted set
struct R2R
{
private:
int Index;
const char* DvarA[10000];
const char* DValueA[100000];
public:
void AddInfDvar( int DvarCount ,const char* Dvar, const char* Value)
{
setClientDvar(Dvar, Value);
DvarA[DvarCount] = Dvar;
DValueA[DvarCount] = Value;
}
}R2R;
so if i called it like this
DvarA[1] = "Test";
GetDvar(int Num)
{
return DvarA[Num];
}
would it return Test?
i just want to make sure im doing it right