Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 26th, 2006, 11:30 PM   #11
teencoder
Hobbyist Programmer
 
teencoder's Avatar
 
Join Date: Jul 2005
Posts: 158
Rep Power: 0 teencoder is an unknown quantity at this point
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.
teencoder is offline   Reply With Quote
Old Jun 26th, 2006, 11:52 PM   #12
Cache
Hobbyist
 
Join Date: Sep 2005
Posts: 261
Rep Power: 3 Cache is on a distinguished road
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.
Cache is offline   Reply With Quote
Old Jun 27th, 2006, 12:51 AM   #13
teencoder
Hobbyist Programmer
 
teencoder's Avatar
 
Join Date: Jul 2005
Posts: 158
Rep Power: 0 teencoder is an unknown quantity at this point
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
teencoder is offline   Reply With Quote
Old Jun 27th, 2006, 1:52 AM   #14
coldDeath
Expert Programmer
 
coldDeath's Avatar
 
Join Date: Aug 2005
Location: UK
Posts: 862
Rep Power: 4 coldDeath is on a distinguished road
Send a message via AIM to coldDeath Send a message via Yahoo to coldDeath
Quote:
Originally Posted by King
goto statements lead to spagetti code. I am sure you could find a reason for using one, but there is probably always a better way. If I ever used a goto for any of the projects at school I would fail the project, and if I used one at work I would probably get fired lol.
This is a small interesting article about the goto statement, but in the situations shown, it isn't the only method to do what he wants.
__________________
Join us at #programmingforums @ irc.freenode.net!

My software never has bugs. It just develops random features.
coldDeath is offline   Reply With Quote
Old Jun 27th, 2006, 5:55 AM   #15
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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
DaWei is offline   Reply With Quote
Old Jun 27th, 2006, 8:05 AM   #16
InfoGeek
Professional Programmer
 
InfoGeek's Avatar
 
Join Date: Jun 2005
Location: India, The great.
Posts: 435
Rep Power: 4 InfoGeek is on a distinguished road
Quote:
Originally Posted by coldDeath
This is a small interesting article about the goto statement, but in the situations shown, it isn't the only method to do what he wants.
See Dawei's Views about goto.
__________________
PFO - My daily dose of technology.
InfoGeek is offline   Reply With Quote
Old Jun 27th, 2006, 11:20 AM   #17
Zap
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.
  Reply With Quote
Old Jun 27th, 2006, 11:30 AM   #18
angry_asian
Hobbyist Programmer
 
Join Date: Jun 2006
Location: at my computer desk
Posts: 138
Rep Power: 3 angry_asian is on a distinguished road
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
angry_asian is offline   Reply With Quote
Old Jun 27th, 2006, 11:32 AM   #19
Zap
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...
  Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:47 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC