I am fairly new to C++. I work as an intern and I need to pass a pointer to a function. Can someone please help.
U8 System::check()
{
Array drives = Array::update(system);
......
......
check2(drives);
........
}
U8 System::check2(Array drives)
{
Array bad_drives = Array::drives.filter(&new_drives);
}
If I were to put everything in a one function, it all works. Therefore, there is something wrong with the way I pass parameters into the function. I do have a .h file.