Computer Hope

Software => Computer programming => Topic started by: Zach7 on July 14, 2006, 08:32:47 AM

Title: Program wont work right.
Post by: Zach7 on July 14, 2006, 08:32:47 AM
Could you guys please check out this link: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=552053&SiteID=1

It has a question at that I cant get answered.
Title: Re: Program wont work right.
Post by: Rob Pomeroy on July 14, 2006, 09:34:22 AM
I don't really do C, but this line:
if ((insert == "leave") && (y=0))
- you're using the assignment operator ('=') rather than the equality operator ('==') --> y=0.  Is that intentional?
Title: Re: Program wont work right.
Post by: Zach7 on July 14, 2006, 10:17:25 AM
Yes it is international. I cant believe I didnt see that. Thank you very much.