-
invalid conversion
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.
-
For some reason, it hasnt seperated the code.
for this i am sorry
-
what is :
defined as in your code? an int?
please post the definition of this (data structure?) and maybe i (or others) can help you out.
oh and use the square brackets [ ] to enclose code, and not the angular brackets < >
-
ive just noticed that the i has nothing to do with the class that it refers too.... my brains not working anymore...
i think ive sorted it out! thanks for pointing it out!
Black_Solitare