why using so much compilcated code ?

Discussion about everything. New games, 3d math, development tips...
Guest

why using so much compilcated code ?

Post by Guest »

I don't even understand the tutorials. I am familiar with C and Java, but the examples use directives like "namespace", or "<>" and when I look in my 650-pages C/C++ book it just says that it's advanced programming and it's not explained in it ! Is there any place on the web to understand what is it ?
Robomaniac
Posts: 602
Joined: Sat Aug 23, 2003 2:03 am
Location: Pottstown, PA
Contact:

Post by Robomaniac »

Cause game programming and 3d programming are hard, complicated stuff :)
The Robomaniac
Project Head / Lead Programmer
Centaur Force
Guest

Post by Guest »

just an example:

dimension2d<s32>(512, 384)

why not just 512, 384 ?
Robomaniac
Posts: 602
Joined: Sat Aug 23, 2003 2:03 am
Location: Pottstown, PA
Contact:

Post by Robomaniac »

because thats how you pass variables to a class's constructor, in this case dimension2d<s32>
The Robomaniac
Project Head / Lead Programmer
Centaur Force
saigumi
Posts: 921
Joined: Fri Aug 22, 2003 11:31 am
Location: St. Louis, MO USA
Contact:

Re: why using so much compilcated code ?

Post by saigumi »

Anonymous wrote:I don't even understand the tutorials. I am familiar with C and Java, but the examples use directives like "namespace", or "<>" and when I look in my 650-pages C/C++ book it just says that it's advanced programming and it's not explained in it ! Is there any place on the web to understand what is it ?
Wow.. that book must suck then.

Download "Thinking in C++" Volumes 1 + 2. They are free ebooks released by the author and are better than 90% of the ones in print.

http://64.78.49.204/
Crud, how do I do this again?
Guest

Post by Guest »

Many thanks !

I rush reading, now :oops:
jox
Bug Slayer
Posts: 726
Joined: Thu Apr 22, 2004 6:55 pm
Location: Germany

Post by jox »

Also good: http://www.cplusplus.com/doc/tutorial/
Anonymous wrote:just an example:
dimension2d<s32>(512, 384)
why not just 512, 384 ?
you need the "<32>" here because dimension2d is a template.
Tyn
Posts: 932
Joined: Thu Nov 20, 2003 7:53 pm
Location: England
Contact:

Post by Tyn »

The idea of having a new type called dimension2d is to make it clearer as to what you are dealing with. You can make up your own if you want. It makes more sense to see this and think "Right, this is a dimension" rather than "These are two integers".
Guest

Post by Guest »

ok, I better understand now. Yet I have to understand how to use them, and all the rest :lol:
Kristian
Posts: 12
Joined: Wed Sep 22, 2004 3:07 pm
Location: Germany

Post by Kristian »

I'd also recommend buying "Accelerated C++" if you want a good book. It's fast paced but since you know JAVA and C, that should be exactly what you want.
Electron
Posts: 874
Joined: Sun Mar 14, 2004 12:05 am
Location: Massachusetts USA

Post by Electron »

I find C++ in a Nutshell a great reference. It's not a beginners book, but once you know the basics of the language it's great to look up little specific details.
You do a lot of programming? Really? I try to get some in, but the debugging keeps me pretty busy.

Crucible of Stars
Mr_Ridd
Posts: 63
Joined: Tue Sep 28, 2004 5:16 am

Post by Mr_Ridd »

Ha ha ha. Perhaps off topic but I only saw it now. Electron your signature is really funny.
Tyn
Posts: 932
Joined: Thu Nov 20, 2003 7:53 pm
Location: England
Contact:

Post by Tyn »

Funny, yet painfully true.
Guest

Post by Guest »

ok, now I may look into a library - is the book full of examples ?
Kristian
Posts: 12
Joined: Wed Sep 22, 2004 3:07 pm
Location: Germany

Post by Kristian »

Maybe we should have a "recommended reading" or something like that thread (or maybe i just didn't find it :shock: ). People could post Books they recommend (be it coding, databases, 3d etc.) and maybe add a little review.
Post Reply