Re: need help..
- From: Martin Ambuhl <mambuhl@xxxxxxxxxxxxx>
- Date: Thu, 31 Mar 2005 10:18:06 GMT
slickn_sly wrote:
^^^^^^^^^^^^^^^^^^^^^^^^line = 1; while( !feof( infile ) )
This is a mistake; check the FAQ, your C textbook, or any of a large number of previous threads for details.
{
if( line = 2 )
^^^^^^^^^^^^This, and all subsequent conditions like it, are almost certainly a mistake. '=' is the assignment operator; '==' is the equality comparison operatior.
.
- Follow-Ups:
- Re: need help..
- From: CBFalconer
- Re: need help..
- References:
- need help..
- From: slickn_sly
- need help..
- Prev by Date: need help..
- Next by Date: why function return more char in string array?
- Previous by thread: need help..
- Next by thread: Re: need help..
- Index(es):
Relevant Pages
|