Hi,
My problem is that I have an array stored in a file which contains a variable "type".
An example of the file is
1
Mr Blank
2 Blank Road
Blanksville
r
the final character 'r' stands for remove and is can be identified tbp->entry[j].type
what I am trying to do is read each record from the file and depending on the 'type' perform certain actions.
My code looks something like this
for(j=o; j<(tbp->n); j++)
if(tbp->entry[j].type == 'r')
statements;
else statements;
the problem seems to be that tbp->entry[j].type is not recognised as an integer and as such cannot be compared with 'r'
hope someone can help?
Andy