Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → Pulse
Pulse
2002-12-17, 4:20 PM #1
I know this is probably archaic, but, is this how you would write an addition to a variable? vars+1 = vars. Thankyou.
Daddy, why doesn't this magnet pick up this floppy disk?
2002-12-17, 4:29 PM #2
No, no. Youve got it backwards.

Code:
Variable = Variable + 1;


We are reassigning 'Variable' to equal the sum of the original value plus one.
And when the moment is right, I'm gonna fly a kite.
2002-12-17, 4:59 PM #3
Thanks. Im used to writing programs for the TI-83 calculator. So, it's like BASIC.
Daddy, why doesn't this magnet pick up this floppy disk?
2002-12-17, 6:09 PM #4
Actully, cog has its roots in C++... [http://forums.massassi.net/html/smile.gif]
And when the moment is right, I'm gonna fly a kite.

↑ Up to the top!