do a simple maths problem
Moderator: Forum Moderators
-
- Throbbing Cupcake
- Posts: 10249
- Joined: February 17th, 2007, 23:05
- Location: The maleboge
As a matter of fact it is a 2D engine I'm working on, it could be magically transform into a game if you can come up with something absolutely mind-blowing.
Buzz: I know it does this weird thing which has a name which absolutely escapes me, like for the problem above: 1 3 4 * - 7 +.
Buzz: I know it does this weird thing which has a name which absolutely escapes me, like for the problem above: 1 3 4 * - 7 +.
Last edited by Baliame on June 18th, 2010, 21:59, edited 1 time in total.
[media]http://www.youtube.com/watch?v=7B2LPxggvqY[/media]buzzmong wrote:How about a game of blowing minds? With air horns. Or vuvuulvuuzuzubzbbbzzzzzzzzzzzzbzzzzzzzzzzz thiniges.
-
- Mr Flibbles
- Posts: 4957
- Joined: August 10th, 2006, 10:58
- Location: belgium
You guys seen the new frontpage right?
-
- Weighted Storage Cube
- Posts: 7167
- Joined: February 26th, 2007, 17:26
- Location: Middle England, nearish Cov
Hahaha, that was brilliant!Stoat wrote: [media]http://www.youtube.com/watch?v=7B2LPxggvqY[/media]
-
- Throbbing Cupcake
- Posts: 10249
- Joined: February 17th, 2007, 23:05
- Location: The maleboge
Mr. Johnson wrote:You guys seen the new frontpage right?
THE BEES!
NOT THE BEES!
OH GOD THE BEES!
THEY'RE WEARING A BEAR SUIT!
-
- Site Owner
- Posts: 9597
- Joined: May 16th, 2005, 15:31
- Location: Coventry, UK
- Contact:
C++ does indeed give -4
It's documented as having + above - in its operator preferences, but actually treats them equally - perhaps, as deject mentioned, because they are essentially the same operation.
In terms of what I was taught, it was to never write equations ambiguously, or at least I learned that at some point. While I did maths into college level, it's later that I did programming, so I guess it's that methodology that has stuck with me.
It's documented as having + above - in its operator preferences, but actually treats them equally - perhaps, as deject mentioned, because they are essentially the same operation.
In terms of what I was taught, it was to never write equations ambiguously, or at least I learned that at some point. While I did maths into college level, it's later that I did programming, so I guess it's that methodology that has stuck with me.
-
- Shambler In Drag
- Posts: 780
- Joined: March 16th, 2007, 20:22
- Location: on the sofa
- Contact:
Just to clear it up once and for all, C++ has 16 tiers for operators
1. Scope
2. Brackets and casts
3. Unary operations (negation, increment, logical NOT, pointer denomination, etc.)
4. Pointer resolution
5. Multiplication, division, modulo
6. Addition, subtraction
7. Shift
8. Less/greater than
9. Equal and not equal
10-11-12. Bitwise AND / Bitwise XOR / Bitwise OR
13-14. Logical AND / Logical OR
15. Conditional operator
16. Assignment (=, +=, *=...)
TL;DR Deej should consider using a proper compiler.
1. Scope
2. Brackets and casts
3. Unary operations (negation, increment, logical NOT, pointer denomination, etc.)
4. Pointer resolution
5. Multiplication, division, modulo
6. Addition, subtraction
7. Shift
8. Less/greater than
9. Equal and not equal
10-11-12. Bitwise AND / Bitwise XOR / Bitwise OR
13-14. Logical AND / Logical OR
15. Conditional operator
16. Assignment (=, +=, *=...)
TL;DR Deej should consider using a proper compiler.
you cupcake!Stoat wrote: [media]http://www.youtube.com/watch?v=7B2LPxggvqY[/media]
this made me splutter tea over my new keyboard
-
- Ninja Pirate
- Posts: 1517
- Joined: July 17th, 2005, 13:29
- Location: Saaaarfampton
-
- Site Owner
- Posts: 9597
- Joined: May 16th, 2005, 15:31
- Location: Coventry, UK
- Contact:
Heh, I liked them poking through the door, but if only they were so tuneful.Stoat wrote: [media]http://www.youtube.com/watch?v=7B2LPxggvqY[/media]