Code:
for(i = 0; i != '\n'; i++)
i is an integer
what you should do is
Code:
for(int i=0; exp[i]!='\0'; i++)
for(i = 0; i != '\n'; i++)
for(int i=0; exp[i]!='\0'; i++)
while there is no file failure (eof):
abc <-- read next record
display abc
class example
{
public:
char name[10], number[5];
void getdetails();
void showdetails();
example()
{
name[0]='\0', number[0]='\0';
}
Leave a comment: