Well I don't know then because I do not get that error are you sure that is all of the code? Or I heard visual studios does that so maybe clean build or make a new project?
@gilbit: yeah, this is all the code. I don't know what the problem is but I'll figure it out, thanks though.
@Daleth: This is the whole code, I thought it should work, considering other people in my class ran it with just this and it was fine.
Why don't you get along with trying to fix the code with some of the suggestions we have made, rather than keep complaining about the existing code which doesn't work?
Also, if you have errors, then post them in full. But fix up your code first