I have a dynamic array which will be updated from a different test system. I am havign hard time with syntax. Can someone please help me here?
Here is where I declare my vector
void TestSystem::Drive(U32 RunMode, U32 Options)
{ //U32 is unsigned 32 bit
U32 condition;
U32 i;
U8 k;
vector<U32> badDriveList(1,0);//initial size of vector is 1 and value is 0
int *badDrivePointer[&badDriveList];
bool driveStatus = testSystems[k]->DriveCheck(badDrivePointer);//should this be &badDrivePointer?
// left side to "->" is correct. After that i am not sure
}
Here is where I update my vector.
int TestSystem::DriveCheck(int *badDriveList)
{
U32 condition;
U32 i= 10;
U32 j = 0;
for(j;j<i;j++)
{
badDriveList[j] = (*i)->shelf;//right hand side of this is working when tested with complete code base
//I am not sure how to write values in to badDriveList vector using pointers
}
}
here is part of my .h file
int recoverDriveCheck(int *);
Please help me out to get this thing right.