0
Chivo

i=i++?

Recommended Posts

Quote

I 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...

Share this post


Link to post
Share on other sites
Quote

Quote

computer programming == paycheck == skydiving!!




I was stuck in that vicious cycle once......NO MORE!!!!B|



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.

Share this post


Link to post
Share on other sites
Quote

I 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!

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
Quote

I 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?

Share this post


Link to post
Share on other sites
Quote

those 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.

Share this post


Link to post
Share on other sites
Quote

Quote

those 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???

Share this post


Link to post
Share on other sites
Quote

Quote

computer 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

Share this post


Link to post
Share on other sites
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)

Share this post


Link to post
Share on other sites
Quote

Quote

Quote

computer programming == paycheck == skydiving!!



(!Programming) ? Packing : Skydiving;

}



Lets try:

while( programming )
{
if( ! Packing() )
Skydiving();
else
Packing();
)

if( ! programming && out_of_work )
__asm int 3;

Share this post


Link to post
Share on other sites

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.

Guest
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.

0