zonie 0 #26 May 13, 2003 QuoteI was already wrong once today so I'm not gonna even try and making a guess on this one Actually I screwed up, been a while since I programmed in inline assembly. Try this one (edited). There's an easy way to figure it out quick, compile and run it! But that would be cheating... Quote Share this post Link to post Share on other sites
zonie 0 #27 May 13, 2003 Quote Quote Lets have some fun You're REALLY high right now....right? computer programming == paycheck == skydiving!!! Quote Share this post Link to post Share on other sites
AggieDave 6 #28 May 13, 2003 And in some languages '==' means NOT equal to...--"When I die, may I be surrounded by scattered chrome and burning gasoline." Quote Share this post Link to post Share on other sites
zonie 0 #29 May 13, 2003 QuoteAnd in some languages '==' means NOT equal to... This one would be C. '!=' is not equal to Quote Share this post Link to post Share on other sites
freeflir29 0 #30 May 13, 2003 Quote computer programming == paycheck == skydiving!! I was stuck in that vicious cycle once......NO MORE!!!! Quote Share this post Link to post Share on other sites
zonie 0 #31 May 13, 2003 Quote Quote computer programming == paycheck == skydiving!! I was stuck in that vicious cycle once......NO MORE!!!! So whats your seceret??? I thought about the T.J. Cooper thing (rob a bank, skydive from a commercial airliner) but you cant get away with the same crime twice. That, and I dont like commercial airliners. Quote Share this post Link to post Share on other sites
freakshow 0 #32 May 13, 2003 T.J. did it too? B.L. (the brain) Quote Share this post Link to post Share on other sites
sunshine 2 #33 May 13, 2003 QuoteI bet all this talk is turning Sunshine on. Hehe. Someone actually had to IM the link to this thread telling me i missed a post with my name in it. I never even opened it cause i figured it was computer mumbo jumbo stuff. ___________________________________________ meow I get a Mike hug! I get a Mike hug! Quote Share this post Link to post Share on other sites
zonie 0 #34 May 13, 2003 Quote T.J. did it too? Turn yourself in and they may make a movie about you too! Ive been looking for that movie, its an old one from back in the '70s, saw a documentary on it several years ago, true story. I forgot what kind of airliner he jumped off of, dropped from the belly of a 727 I think? Quote Share this post Link to post Share on other sites
freakshow 0 #35 May 13, 2003 I was just messing with you wasn't his name D.B. Cooper.; My old roomates parent used to own a bar in the town he was supposed to have landed in they have D.B Cooper is alive parties every year. B.L. (the brain) Quote Share this post Link to post Share on other sites
zonie 0 #36 May 13, 2003 QuoteI was just messing with you wasn't his name D.B. Cooper Shit, there goes my memory. D.B. Cooper, thanks! Youd think after only 30 years you could remember something like that. I was right, it was a 727: http://www.dccomix.com/roadkilldiaries/dbcooper.htm "Cooper dove into a freezing rainstorm at 10,000 feet, wearing only a business suit and loafers. The temperature was 7 below zero, not counting a wind chill factor estimated at minus 70 because of the plane's speed of 200 mph." This guy is a skydiving badass. So which one of you did it? Quote Share this post Link to post Share on other sites
happythoughts 0 #37 May 13, 2003 Quotethose classes at hcc are paying off Bill! at least in the posts! Nah, I've hated C for years. People used to write unmaintainable junk in Assembler. That is why easy to read/write higher level languages were invented. Sure Assembler is fast, but the cost of producing correct code was ridiculous. Then, someone gives away a free compiler and everyone thinks it's cool. Then, they write some good network stuff with it. Back to the beginning. Bit-bending languages like Assembler and C are only good for network applications. Business applications are done with complete numbers and character strings, not bits. The proper tool for the job. Quote Share this post Link to post Share on other sites
happythoughts 0 #38 May 13, 2003 Quote computer programming == paycheck == skydiving!!! I hope that these are instances of the same object or you may want to use .equals instead. Quote Share this post Link to post Share on other sites
zonie 0 #39 May 13, 2003 QuoteQuotethose classes at hcc are paying off Bill! at least in the posts! Nah, I've hated C for years. People used to write unmaintainable junk in Assembler. That is why easy to read/write higher level languages were invented. Sure Assembler is fast, but the cost of producing correct code was ridiculous. Then, someone gives away a free compiler and everyone thinks it's cool. Then, they write some good network stuff with it. Back to the beginning. Bit-bending languages like Assembler and C are only good for network applications. Business applications are done with complete numbers and character strings, not bits. The proper tool for the job. Yea, but its fun! Dont get into business application programming, even though Im a programmer on the software team for ACT!, its still purely technical. We get to leave the business part to PM. Ive been on this software team for almost two years now, and Im still not sure what this application does! Any ACT! users out there want to clue me in??? Quote Share this post Link to post Share on other sites
PhillyKev 0 #40 May 13, 2003 Quotecomputer programming == paycheck == skydiving!! Not these days. I know 3 programmers who haven't worked in almost 6 months, and not from lack of looking. Quote Share this post Link to post Share on other sites
ManBird 0 #41 May 15, 2003 QuoteQuotecomputer programming == paycheck == skydiving!! (!Programming) ? Packing : Skydiving; BTW, if it wasn't confirmed before... i = 0; i++; ...would be 1. ++ increments by a single integer. It's a shorter way of writing... i = i + 1; It's not really good for comparisons, because you could just use < or > instead of =, but it is primarily used for loops: // Writes 0 - 9 for (i=0; i<10; i++) { echo(i); } If you wanted to increase by more than one, you'd replace the second + with the incremental value... // Writes 0, 4, and 8 for (i=0; i<10; i+4) { echo(i); } You can use other short circuit math, as well... like calculating acceleration... // Acceleration (pay no attention to the plugged in figures) s = 0; v = 0.25; for (i=0; i<=176; i/=v) { s++; echo(i + " feet after " + s + " seconds at " + (i - i*v) + " feet per second."); }"¯"`-._.-¯) ManBird (¯-._.-´"¯" Click Quote Share this post Link to post Share on other sites freakshow 0 #42 May 15, 2003 actually after much discussion and proving me wrong we came to the conclusion that since they were talking java the answer is actually 0 because of the way the stack is called...look up a few post to see the disassembly. In c/c++ at least for the compiler I ran it under it did =1. B.L. (the brain) Quote Share this post Link to post Share on other sites ManBird 0 #43 May 15, 2003 That's odd. I just ran the above in Java (sans echo()), and did not get 0. I wonder if it's because I'm not on *nix. I'll have to see what happens on Linux at home."¯"`-._.-¯) ManBird (¯-._.-´"¯" Click Quote Share this post Link to post Share on other sites Chivo 0 #44 May 15, 2003 The behavior of i++ is, like you said, equal to i=i+1. But the problem is shown when you do... int i = 0; i = i++; In Java, the value of i should be 0. ~Chivo Quote Share this post Link to post Share on other sites zonie 0 #45 May 16, 2003 QuoteQuoteQuotecomputer programming == paycheck == skydiving!! (!Programming) ? Packing : Skydiving; } Lets try: while( programming ) { if( ! Packing() ) Skydiving(); else Packing(); ) if( ! programming && out_of_work ) __asm int 3; Quote Share this post Link to post Share on other sites Prev 1 2 Next Page 2 of 2 Join the conversation You can post now and register later. If you have an account, sign in now to post with your account. Note: Your post will require moderator approval before it will be visible. Reply to this topic... × Pasted as rich text. Paste as plain text instead Only 75 emoji are allowed. × Your link has been automatically embedded. Display as a link instead × Your previous content has been restored. Clear editor × You cannot paste images directly. Upload or insert images from URL. Insert image from URL × Desktop Tablet Phone Submit Reply 0 Go To Topic Listing
freakshow 0 #42 May 15, 2003 actually after much discussion and proving me wrong we came to the conclusion that since they were talking java the answer is actually 0 because of the way the stack is called...look up a few post to see the disassembly. In c/c++ at least for the compiler I ran it under it did =1. B.L. (the brain) Quote Share this post Link to post Share on other sites
ManBird 0 #43 May 15, 2003 That's odd. I just ran the above in Java (sans echo()), and did not get 0. I wonder if it's because I'm not on *nix. I'll have to see what happens on Linux at home."¯"`-._.-¯) ManBird (¯-._.-´"¯" Click Quote Share this post Link to post Share on other sites
Chivo 0 #44 May 15, 2003 The behavior of i++ is, like you said, equal to i=i+1. But the problem is shown when you do... int i = 0; i = i++; In Java, the value of i should be 0. ~Chivo Quote Share this post Link to post Share on other sites
zonie 0 #45 May 16, 2003 QuoteQuoteQuotecomputer programming == paycheck == skydiving!! (!Programming) ? Packing : Skydiving; } Lets try: while( programming ) { if( ! Packing() ) Skydiving(); else Packing(); ) if( ! programming && out_of_work ) __asm int 3; Quote Share this post Link to post Share on other sites Prev 1 2 Next Page 2 of 2 Join the conversation You can post now and register later. If you have an account, sign in now to post with your account. Note: Your post will require moderator approval before it will be visible. Reply to this topic... × Pasted as rich text. Paste as plain text instead Only 75 emoji are allowed. × Your link has been automatically embedded. Display as a link instead × Your previous content has been restored. Clear editor × You cannot paste images directly. Upload or insert images from URL. Insert image from URL × Desktop Tablet Phone Submit Reply 0