Community Forums => General Chat => Topic started by: Kairon on January 29, 2007, 10:39:40 AM
Title: I just realized what I got wrong on a programming test this morning!
Post by: Kairon on January 29, 2007, 10:39:40 AM
No! NO! NOOOOOOOOOOOOOOOOOOOOOOO!!!
~Carmine "Cai" M. Red Kairon@aol.com
Title: RE:I just realized what I got wrong on a programming test this morning!
Post by: MarioAllStar on January 29, 2007, 11:05:20 AM
I hate it when that happens.
Title: RE: I just realized what I got wrong on a programming test this morning!
Post by: Smoke39 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:<
Title: RE: I just realized what I got wrong on a programming test this morning!
Post by: KnowsNothing on January 29, 2007, 01:19:20 PM
You declared your variable locally instead of globally.
Title: RE: I just realized what I got wrong on a programming test this morning!
Post by: MarioAllStar 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.)
Title: RE: I just realized what I got wrong on a programming test this morning!
Post by: Caliban on January 29, 2007, 03:37:14 PM
I know my rights, I want my phone call.
Title: RE: I just realized what I got wrong on a programming test this morning!
Post by: Kairon on January 29, 2007, 05:52:06 PM
I forgot that the member variable was static.
~Carmine "Cai" M. Red Kairon@aol.com
Title: RE: I just realized what I got wrong on a programming test this morning!
Post by: KDR_11k 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.
Title: RE: I just realized what I got wrong on a programming test this morning!
Post by: nitsu niflheim on January 30, 2007, 06:48:39 AM
this is boring.
Title: RE: I just realized what I got wrong on a programming test this morning!
Post by: Kairon 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
Title: RE: I just realized what I got wrong on a programming test this morning!
Post by: Smoke39 on January 30, 2007, 09:39:06 AM
What's the difference between normal casting and reinterpret casting?
Title: RE: I just realized what I got wrong on a programming test this morning!
Post by: KDR_11k on January 31, 2007, 03:55:20 AM
Your supervisor will kill you for using the latter.
Title: RE: I just realized what I got wrong on a programming test this morning!
Post by: Smoke39 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).