![]() |
| | #1 |
| Guest
Posts: n/a
| What the heck is wrong with this code? Code: Spaceship1->ForwardAngle >= Spaceship1->MaxAngle?Spaceship1->ForwardAngle += 0:Spaceship1- >ForwardAngle += -Spaceship1->TiltSpeed; lesson1\lesson01\Lesson1.cpp(748) : error C2059: syntax error : '>' GOD HATES ME |
|
| | #2 |
| Guest
Posts: n/a
| Nevermind for some reason the '->' symbol was cut apart...I fixed it...but I still can't figure out why it does that EVERY TIME I MAIL IT TO MYSELF arg! |
|
| | #3 |
| End Of Line Join Date: Apr 2002
Posts: 6,240
| why not email it as an attachment instead?
__________________ When all else fails, read the instructions. If you're posting code, use code tags: [code] /* insert code here */ [/code] |
| Hammer is offline | |
| | #4 |
| and the hat of marbles Join Date: May 2002 Location: Lund, Sweden
Posts: 2,041
| I think the code is somewhat hard to read. Spaceship1->ForwardAngle += 0 //??? Seems unnecessary I like something like: Code: if (SpaceShip->ForwardAngle < Spaceship1->MaxAngle) Spaceship1->ForwardAngle -= Spaceship1->TiltSpeed;
__________________ Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling |
| Sang-drax is offline | |
| | #5 |
| Registered User Join Date: Jul 2002
Posts: 945
| Re: What the heck is wrong with this code? edit: n/m
__________________ hello, internet! |
| moi is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| what is wrong in this simple code | vikingcarioca | C Programming | 4 | 04-23-2009 07:10 AM |
| Error msg regarding the Switch loop, What's wrong in my code? | althagafi | C Programming | 7 | 08-06-2004 09:14 AM |
| what is wrong with this code please | korbitz | Windows Programming | 3 | 03-05-2004 10:11 AM |
| what's wrong with the following code? | catalyst | C Programming | 1 | 11-07-2003 04:30 AM |
| can someone check my code and tell me what I'm doing wrong | jlmac2001 | C++ Programming | 7 | 09-20-2003 08:14 PM |