Okay, I'm probably going to sound really stupid here, and I know I know this, I've used it before, but for the life of me, at the moment, I can't bring it do mind. "x += y" means either:
"if x is more than or equal to y"
or:
"x = x + y"
I'm pretty sure it means the first one but...yeah.
Posted: Tue Nov 16, 2010 7:13 pm
I think this forum is dead dude XD. -not even member- What language are you programming in? I can try and help.
Slick_Gunner_Eclispe
Offline
obliviousCrafter
Offline
Posted: Tue Nov 16, 2010 7:28 pm
At the moment, GML, for Game Maker 7, because I'm helping out on a project.
I came here again just now actually to say that I found out. I have a C++ for Dummies book laying around so I skimmed through it till I found the little bugger command.
+= at least in C++, and I'm guessing in GML too, does what I said it does. Basically typeing
x += 2
is the exact same thing as typing
x = x + 2
.
Posted: Tue Nov 16, 2010 7:31 pm
OH! But thanks, dude.
Hey, you seem like a cool programmer guy. Feel like adding a freshling programmer on MSN or something? I don't have any programmer friends to bug when I need help with stuff. >>
Plus, like I said, you seem cool. XD Kinda one of those guy's who's just easy to get along with, you know? :3
obliviousCrafter
Offline
Slick_Gunner_Eclispe
Offline
Posted: Tue Nov 16, 2010 7:34 pm
I dont have an msn. And my main programming is in python, not C++ or any of that fancy stuff XD. Friend me though. I dont have many programmer friends either.
Posted: Tue Nov 16, 2010 7:49 pm
lol. or u can send me emails or something.
Slick_Gunner_Eclispe
Offline
ChampionSound
Offline
Posted: Wed Feb 23, 2011 1:15 am
Yeah this guild is DEEEAD but incase anyone is reading, the code for the first one is x >= y