Lets say I have an object array declared like this:
Object Array[100];
int count = 0;
bool exit;
do
{
if (Array[count] == "")
{
//code that stores data
exit = true;
}
else
{
count++;
}
}
while (exit != true);
I keep having errors from the compiler which says:
error: no match for ‘operator==’ in ‘Array[count] == ""'
I know I can use a for loop function to store them correctly or even use a vector, but for now, I have to use this method to check if the array is empty/null. Any idea how to do it? I have seen many examples here, but almost all of it are string/int/float etc etc arrays.