Title: Why don't this compile? Post by: Mage of Blackest Night on November 25, 2004, 05:17:57 pm This isn't anything major. I just figured I'd see if I could get something to compile in c++, since I've never been able to before. It's just a simple scrolling menu, and I can't find anything wrong with my code. I'm using dev-c++
Code:
The two commented out libraries are as such because the compiler was complaining about them being antiquated. What is wrong with this code? Title: Why don't this compile? Post by: Zylokh on November 26, 2004, 08:42:41 am Don't you have to declare your function "scrollmenu" in the upper portion of the code before actually programming it?
It's just a guess... Title: Why don't this compile? Post by: Mage of Blackest Night on November 26, 2004, 08:44:00 pm No. You only have to do that if you're calling the function in things coded higher up than it. In this case I am not and it is unneccessary.
Title: Why don't this compile? Post by: Ty on November 27, 2004, 12:52:00 am A lot of braces missing, and it looks like a cross between Pascal code and C++ code. Haven't looked over it completely but a lot of things look wrong to me.
Title: Why don't this compile? Post by: bEn on December 01, 2004, 12:10:00 pm Code:
What is this? A function that is nothing more than a stub, and commands that are lost in the middle of nowhere. I mean the while loop - to which function does it belong? Another thing is that it looks more like C than C++ but that's more a matter of taste than problems ;-) |