I am having the same error on 2 parts of my code. i am getting an invalid conversion fron 'int' to 'const char'
y would i be getting this?
thanks you
Black_Solitare
<code>
void book::findnme(void) {
int i;
int name, result;
//char temp[20];
cout << "Finding.." << endl;
for(i=0;i<MAX;i++) {
result = strcmp(np[i].name,name);
if (result == 0)
cout << "found!" << endl;
else
cout << "not found!" << endl;
}
}
</code>
it is on the result= line
thanks again.