My compiler doesn't like my return function?

Oct 15, 2009 at 2:13am
Hey all. :)

I'm incredibly new to C++ (well, programming in general) and I'm getting an error message I can't figure out.
It's saying "program 2 item.cpp(38) : error C2059: syntax error : 'return' " when my return function isn't even on line 38, nor is it in error. The weird thing is, other people can compile my program.

Here is a link to my code so far (really short, only 46 lines). If you don't mind, could you tell me where I went wrong?
http://pastebin.com/d3a23da2a

Thanks for any and all help!!!

Cheers,
John
Oct 15, 2009 at 2:18am
It compiled for me with no errors.
Oct 15, 2009 at 2:21am
That's what I mentioned above. Other people can compile it, but not me.
I'm not done, so how would I be able to go on and capture an output if my compiler refuses to compile it?
Oct 15, 2009 at 3:12am
Just interested.. what compiler are you using?
Oct 15, 2009 at 3:49am
VS 2008
Oct 15, 2009 at 4:18am
Are you sure you're compiling the right file?
Oct 15, 2009 at 6:20pm
Yes, absolutely.
Topic archived. No new replies allowed.