Hi all,
My prog is crashing on the following statement:
while ( strcmp( abbrev[loop].initials, product ) != 0 && loop < size )
I get a "illegal" error from windows and the program dies.
char * initials
char product[75]
loop goes from 0 to size (around 150 lines)
I'm thinking that the problem is the char * -vs- char[ ], although there is no syntax error.
For all I know, you can't loop through the struct array in the while statement.
Any ideas or suggestions. I can provide more code if needed.
Thanks in advance.
My prog is crashing on the following statement:
while ( strcmp( abbrev[loop].initials, product ) != 0 && loop < size )
I get a "illegal" error from windows and the program dies.
char * initials
char product[75]
loop goes from 0 to size (around 150 lines)
I'm thinking that the problem is the char * -vs- char[ ], although there is no syntax error.
For all I know, you can't loop through the struct array in the while statement.
Any ideas or suggestions. I can provide more code if needed.
Thanks in advance.