![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
Hobbyist Programmer
Join Date: Jul 2005
Posts: 158
Rep Power: 0
![]() |
Yeah but I just wrote a function but when I call it boom an error for each perimeter.
__________________
Geeks may not be cool now but in the long run they prosper. |
|
|
|
|
|
#12 |
|
Hobbyist
Join Date: Sep 2005
Posts: 261
Rep Power: 4
![]() |
Kinda looks like a half-baked copy/paste job to me. Read the error message and you should figure out that you're calling member functions as if they were variables: 'paball.access_moving_up' should be 'paball.access_moving_up()' and the same for all functions you call.
Also, why have you put function prototypes in the body of 'main' ? and it looks like you trying to 'goto' a type, lol. Pobably more stuff wrong too. |
|
|
|
|
|
#13 |
|
Hobbyist Programmer
Join Date: Jul 2005
Posts: 158
Rep Power: 0
![]() |
Yeah Cache I found that. And I changed the gotos now I've got to figure out where my other errors. I did write this all myself except for the image collision function. First Game attempt in C++ so it's sorta sloppy. I may take the classes and functions and rewrite it.
Thanks everyone.
__________________
Geeks may not be cool now but in the long run they prosper. Last edited by teencoder; Jun 27th, 2006 at 1:06 AM. Reason: forgot to give credit for a function |
|
|
|
|
|
#14 | |
|
Expert Programmer
|
Quote:
__________________
Join us at #programmingforums @ irc.freenode.net! My software never has bugs. It just develops random features.
|
|
|
|
|
|
|
#15 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
There's a case for using goto. Most of the people that use it are the ones that shouldn't be using it. If you have enough expertise to use it properly, you won't use it sloppily. Little turtles walk softly because they can't walk, hardly.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#16 | |
|
Professional Programmer
Join Date: Jun 2005
Location: India, The great.
Posts: 435
Rep Power: 4
![]() |
Quote:
__________________
PFO - My daily dose of technology. |
|
|
|
|
|
|
#17 |
|
Guest
Posts: n/a
|
Dev Cpp, I've had wierd errors, with it too. That's why I re-tried my code in code::blocks. Besides, Dev-Cpp (the new one anyways) is still beta.
|
|
|
|
#18 |
|
Hobbyist Programmer
Join Date: Jun 2006
Location: at my computer desk
Posts: 138
Rep Power: 3
![]() |
yeah i started with it and ended up buying visual c++, i like it better, easier for me although ppl told me it was harder
|
|
|
|
|
|
#19 |
|
Guest
Posts: n/a
|
Visual C++ is a great tool. But there's alittle to much there for me to use. Besides, I don't want fill my hard drive full of tools I can't use...
![]() |
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|