hello ive got 2 arrays defined below
char RW[100];
char array[80];
ive got this algo for now but not 100% certain its working
void setI(char array[])
{
cout << "now in seti function" << endl;
for (int j = 0 ; j <=sizeof(RW[j]); j++)
{
for (int i = 0 ; i <=sizeof(array[i]); i++)
{
strcmp(&array[i], &RW[j]);
}
}
}
the problem is that the strcmp is not comparing all results plus its always returning true. Any suggestings on makeing it more effective and efficient?
Cheers,
John