My program wont compile because of this one function, can someone explain to me why it is says "forbids comparison between pointer and integer" Any help would be appreciated
void ReadBitPattern (ifstream& infile)
{
int x;
x = cin.get();
if(cin.get() == "0")
{
for (int index = 0; index < PatternSize; index++)
{
OperandArray bitArray[index] = '0';
}
}
else
{
for (int index = 0; index < PatternSize; index++)
{
OperandArray bitArray[index] = '1';
}
}
}