Search found 2454 matches

by MarauderIIC
Tue Sep 24, 2013 3:07 pm
Forum: General/Off-Topic
Topic: The meaning of Lorem Ipsum
Replies: 2
Views: 4069

Re: The meaning of Lorem Ipsum

Wikipedia says The lorem ipsum text is typically a mangled section of De finibus bonorum et malorum, a 1st century Latin text by Cicero, with words altered, added, and removed that make it nonsensical and not proper Latin.[1] ->http://www.straightdope.com/columns/read/2290/what-does-the-filler-text-...
by MarauderIIC
Wed Sep 04, 2013 12:25 pm
Forum: General/Off-Topic
Topic: Mufasa explains C++ to Simba
Replies: 4
Views: 4677

Re: Mufasa explains C++ to Simba

... I liked it ...
by MarauderIIC
Tue Sep 03, 2013 6:18 pm
Forum: Programming Discussion
Topic: Programming Trivia Questions [HELP ME OUT!]
Replies: 7
Views: 6971

Re: Programming Trivia Questions [HELP ME OUT!]

Wide range of difficulty? Here's a couple: What is the result of the following code? int x = 5; if (x == 6); { x = 4; } A) x will be four B) x will be six C) x will be five Answer: A What is the difference between a syntax error and a semantic error? A) They are the same thing B) A syntax error will...
by MarauderIIC
Thu Jul 18, 2013 5:29 pm
Forum: Programming Discussion
Topic: C++ default operator= implementation
Replies: 12
Views: 8771

Re: C++ default operator= implementation

I thought it looked like one, derp. I brainfarted and combined his non-pointer syntax with your stuff about placement new. embarrassing
by MarauderIIC
Thu Jul 18, 2013 1:43 pm
Forum: Programming Discussion
Topic: C++ default operator= implementation
Replies: 12
Views: 8771

Re: C++ default operator= implementation

It's not necessary to use a destroy function unless you are using inheritance, as you can call destructors directly: f.~foo(); However, if I see you doing this in any of your code, I will very quickly get the fuck out of there. The placement destructor is actually a very useful construct when you'r...
by MarauderIIC
Thu Jul 18, 2013 1:33 pm
Forum: Programming Discussion
Topic: References vs. Copy of an Object[SOLVED]
Replies: 4
Views: 5908

Re: References vs. Copy of an Object

If you need to return an error condition from your getter, e.g. if you need an error code for if an index doesn't exist, you'll need to use a pointer. const Weapon* g_weapon(int i) { if (i < 0 || i >= num_weapons) { return NULL; /* NULL is your error code */ } return &weapons ; } Unless you want...
by MarauderIIC
Sat Jun 22, 2013 8:57 pm
Forum: Programming Discussion
Topic: Per-pixel Destructible Terrain
Replies: 5
Views: 4973

Re: Per-pixel Destructible Terrain

I did something similar long ago, but I didn't get too far. I did it with a color map too, actually.

Instead of removing single pixels you could make them able to be passed thru -- if player collides, see if pixel has at least one adjacent collidable pixel?
by MarauderIIC
Sat Jun 22, 2013 8:51 pm
Forum: Game Development
Topic: Software Engineering Philosophical Crisis
Replies: 11
Views: 16234

Re: Software Engineering Philosophical Crisis

If you have the time, I strongly recommend finding a copy of http://www.amazon.com/exec/obidos/ASIN/0201309831 C++ FAQs. (The "Lite" version is here http://www.parashift.com/c++-faq/ but having read a lot of the book, the book is definitely worthwhile, although some parts are out of date e...
by MarauderIIC
Sat Jun 22, 2013 8:30 pm
Forum: General Gaming
Topic: TOPPED!!
Replies: 28
Views: 32261

Re: TOPPED!!

Took me about 30 minutes, and a chair and posture adjustment, but I "beat" you since I have 100% accuracy? :) Heh typingtest.png I know a bloke who knows a bloke who knows a bloke. Now, I know you know this bloke. This is a bloke you know. Funny I messed it up like 6 times writing it here...
by MarauderIIC
Thu May 30, 2013 5:40 am
Forum: Programming Discussion
Topic: Long Time no Seige
Replies: 17
Views: 7638

Re: Long Time no Seige

Dwarf Fortress sort of came out of the blue...
by MarauderIIC
Tue May 28, 2013 5:39 am
Forum: Art, Music, and Design
Topic: NES Music
Replies: 7
Views: 9283

Re: NES Music

I tried to pick something annoying but NOOOOOO
by MarauderIIC
Tue May 28, 2013 5:36 am
Forum: General Gaming
Topic: Falco's Biweekly Game Purchases
Replies: 74
Views: 62701

Re: Falco's Biweekly Game Purchases

Star... ocean
I
KNOW
WHO
YOU
AREEEEE

by MarauderIIC
Tue May 28, 2013 5:33 am
Forum: Programming Discussion
Topic: Most efficient(quick) Breadth first search algorithm
Replies: 7
Views: 4400

Re: Most efficient(quick) Breadth first search algorithm

If you're only ever using it once ... I wouldn't worry as much about the efficiency of the code as the efficiency of the time it takes you to write it. This. BFS is pretty standard anyways. If you want to parse XML, that's an option, but you definitely want to use an existing library so that you do...
by MarauderIIC
Tue May 28, 2013 5:32 am
Forum: Programming Discussion
Topic: Computer Engineering vs Computer Science
Replies: 6
Views: 5154

Re: Computer Engineering vs Computer Science

Also, I think that CS is in slightly higher demand than CPE, but it's probably pretty close.

CPE: Drivers
CS: Applications