Re: need help..



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.
.




Relevant Pages

  • Re: Help. Just getting started
    ... it's so common a mistake to try to learn C first that this is a FAQ: ...
    (comp.lang.cpp)
  • Re: Current is a vector
    ... Ensle, apparently unaware of ... > mistake of referring to a current density as a current. ... scalar, and the only doubt I had was dissipated by checking the source, ... Wangsness' textbook. ...
    (sci.physics.relativity)
  • Re: CB750KZ
    ... A minor mistake but not a formatting ... QUOTE "Quote the parts of the original post that you are referring to, ... You may also want to look at the FAQ and read how to post properly ...
    (uk.rec.motorcycles.classic)
  • Re: Where can I purchase Census CDs?
    ... >> I think lurking is a lot better than posting. ... > The only mistake you made was asking your question a matter of hours ... Some people wouldn't necessarily be aware of what FAQ meant..... ...
    (soc.genealogy.britain)
  • Re: All Types in Seven Pairs.
    ... What is the mistake that you are asking about? ... This is the same principle Alf was asking about this past week. ... See FAQ 22, ... section 10.1.5.1, "Prohibition against implied inclusions." ...
    (rec.games.mahjong)