what is wrong with this if statement

if(c = 1)
closed account (L1AkoG1T)
Should be if(c == 1).

Take a look at this tutorial:
http://www.cplusplus.com/doc/tutorial/control/
Topic archived. No new replies allowed.