Author Topic: I just realized what I got wrong on a programming test this morning!  (Read 3329 times)

0 Members and 1 Guest are viewing this topic.

Offline Kairon

  • T_T
  • NWR Staff Pro
  • Score: 48
    • View Profile
No!
NO!
NOOOOOOOOOOOOOOOOOOOOOOO!!!

~Carmine "Cai" M. Red
Kairon@aol.com
Carmine Red, Associate Editor

A glooming peace this morning with it brings;
The sun, for sorrow, will not show his head:
Go hence, to have more talk of these sad things;
Some shall be pardon'd, and some punished:
For never was a story of more woe
Than this of Sega and her Mashiro.

Offline MarioAllStar

  • Weird and Wonderful
  • Score: 1
    • View Profile
RE:I just realized what I got wrong on a programming test this morning!
« Reply #1 on: January 29, 2007, 11:05:20 AM »
I hate it when that happens.
Thanks for listening.

Offline Smoke39

  • Smoking is only bad for you if you're not made of smoke already
  • Score: 3
    • View Profile
RE: I just realized what I got wrong on a programming test this morning!
« Reply #2 on: January 29, 2007, 01:06:28 PM »
You forgot to put a semicolon at the end of your class declaration, didn't you.  I hate that stupid thing.  What's the point of it, anyway?  Close curly brace isn't enough closure? O:<
GOREGASM!

Offline KnowsNothing

  • Babycakes
  • Score: 11
    • View Profile
RE: I just realized what I got wrong on a programming test this morning!
« Reply #3 on: January 29, 2007, 01:19:20 PM »
You declared your variable locally instead of globally.
kka wakka wakka wakka wakka wakka wakka wa

Offline MarioAllStar

  • Weird and Wonderful
  • Score: 1
    • View Profile
RE: I just realized what I got wrong on a programming test this morning!
« Reply #4 on: January 29, 2007, 02:55:47 PM »
You forgot to validate user input resulting in a pathetically huge potential for buffer overflow.

(This must stop.)
Thanks for listening.

Offline Caliban

  • In Space As Always
  • Score: 32
    • View Profile
RE: I just realized what I got wrong on a programming test this morning!
« Reply #5 on: January 29, 2007, 03:37:14 PM »
I know my rights, I want my phone call.

Offline Kairon

  • T_T
  • NWR Staff Pro
  • Score: 48
    • View Profile
RE: I just realized what I got wrong on a programming test this morning!
« Reply #6 on: January 29, 2007, 05:52:06 PM »
I forgot that the member variable was static.

~Carmine "Cai" M. Red
Kairon@aol.com
Carmine Red, Associate Editor

A glooming peace this morning with it brings;
The sun, for sorrow, will not show his head:
Go hence, to have more talk of these sad things;
Some shall be pardon'd, and some punished:
For never was a story of more woe
Than this of Sega and her Mashiro.

Offline KDR_11k

  • boring person
  • Score: 28
    • View Profile
RE: I just realized what I got wrong on a programming test this morning!
« Reply #7 on: January 30, 2007, 01:39:53 AM »
That's why C++ allows variables that don't belong to classes because static member variables rarely make any sense.

Offline nitsu niflheim

  • Eye-Candy Andy
  • Score: 5
    • View Profile
RE: I just realized what I got wrong on a programming test this morning!
« Reply #8 on: January 30, 2007, 06:48:39 AM »
this is boring.
Currently Reading:  Odd Apocalypse ~ Dean Koontz
Currently Watching:  ?

Offline Kairon

  • T_T
  • NWR Staff Pro
  • Score: 48
    • View Profile
RE: I just realized what I got wrong on a programming test this morning!
« Reply #9 on: January 30, 2007, 07:46:29 AM »
I don't know... I think that *this is pretty neat, but I guess we'll see next test.

~Carmine "Cai" M. Red
Kairon@aol.com
Carmine Red, Associate Editor

A glooming peace this morning with it brings;
The sun, for sorrow, will not show his head:
Go hence, to have more talk of these sad things;
Some shall be pardon'd, and some punished:
For never was a story of more woe
Than this of Sega and her Mashiro.

Offline Smoke39

  • Smoking is only bad for you if you're not made of smoke already
  • Score: 3
    • View Profile
RE: I just realized what I got wrong on a programming test this morning!
« Reply #10 on: January 30, 2007, 09:39:06 AM »
What's the difference between normal casting and reinterpret casting?
GOREGASM!

Offline KDR_11k

  • boring person
  • Score: 28
    • View Profile
RE: I just realized what I got wrong on a programming test this morning!
« Reply #11 on: January 31, 2007, 03:55:20 AM »
Your supervisor will kill you for using the latter.

Offline Smoke39

  • Smoking is only bad for you if you're not made of smoke already
  • Score: 3
    • View Profile
RE: I just realized what I got wrong on a programming test this morning!
« Reply #12 on: January 31, 2007, 05:34:30 AM »
I think my CS280 professor wants us to use it in our memory managers (for casting a big, dynamically allocated char array to a struct with a pointer, for ease of accessing the first 4 bytes for a linked list).
GOREGASM!