Advertisement

...why do i get this error?

Started by November 10, 2000 06:49 PM
1 comment, last by slightlywhacked 24 years, 2 months ago
got this peice of code
  
if ( strcmp(sp2truck9, "L") == NOT_SAME && sp2truck9checker == 0)
    {
       cout << index <<": ";
       cout <<sp2truck9<<endl;
       sp2truck9checker = 1;
       writefile << sp2truck9 <<endl;
				}
    }//end if


}//end loop ...this was declared earlier


writefile.close(); //close temp.dat...opened earlier

  
now i get an error requesting a ; thingy.. heres what the compiler said error C2143: syntax error : missing '';'' before ''.'' this is on the line writefile.close(); i have no clue whats causing this?/ help me plz? any suggestions? thanx in advance
BAHcows go moomoos go cow
  writefile << sp2truck9 <<endl;				} <-------    }//end if  


is that supposed to be there?

Edited by - Quantum on November 10, 2000 7:56:15 PM
Advertisement
yup.. i have a if statement way up in the code thats not shown.. then i have an if statment in the if statment (tahts the one u see) and all of this is in the loop
BAHcows go moomoos go cow

This topic is closed to new replies.

Advertisement