The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

Sun Researchers: It's not always Microsofts Fault! by subbywan2006-11-19 12:55:59
  People do bad reasoning. by mwq2003-12-19 03:37:37
    Graphic requires floating point by Slamlander2003-12-19 04:08:14
      Alright. So you're going to have bad graphics. by mwq2003-12-19 04:24:49
        Ha! by Didactylos2003-12-19 04:30:38
          I still can't see how by wheresthefish2003-12-19 04:42:19
            Wellll, it it were by binkley2003-12-19 04:54:55
              Gak! *twitch* by Silvermoon82 2003-12-19 06:25:35
  int *a;

  a = malloc( 10.0 * sizeof( int ));

  for (double i = 0.0; i < 10.0; i += 1.0;)
  {
    a[ i ] = i;
    cout << *(a + i) << '\n';
  }
Ohboy... Could be fun. And exciting. :)

Aside from that example, I actually had a programming assignment where we used FP for some calculations, then "forgot" to cast it back to int before writing it to memory. Apparently the memory location immediately after our variable was some kind of software reset key - if we ran the program in the debugger, it worked but gave strange results; if we ran it outside the debugger, it did the calculations and rebooted the machine.

Not something you want a missile defence system to do.

[ Reply ]

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)