I have problem with access to array (member of structure) in array of structures. Code sample:
struct SV
{
int station;
double* tab;
SV()
{
double* tab= new double[3];
}
};
int main()
{
SV* SUV = new SV[10];
SUV[0].station = 10; // works
SUV[0].tab[0] = 10; // how it should be done?
return 0;
}
How can I get access to this array? Is it possible in C? Thanks in advance!
structis basically aclass.