Forum Archive

Go Back   3D Realms Forums > General Topics > Programming Forum
Blogs FAQ Community Calendar

Notices

 
 
Thread Tools
Old 06-01-2009, 05:31 AM   #41
IceColdDuke
Re: C/C++ Tutorials or Books
Quote:
Originally Posted by Bad Sector View Post
This looks more like a brain-dump of the programmer who wrote it than something that actually does anything more efficient (practically) :-P.
John Carmack wrote that :P.
IceColdDuke is offline  
Old 06-01-2009, 10:45 AM   #42
Delicieuxz

Delicieuxz's Avatar
Re: C/C++ Tutorials or Books
Quote:
Originally Posted by IceColdDuke View Post
Lets look at a practical example in the idTech3 code, in tr_bsp.c under the ParseFace function:

Code:
sfaceSize = ( int ) &((srfSurfaceFace_t *)0)->points[numPoints];
College kids would look at that and go wtf? But people that look at practical examples and build there knowlage off of that know exactlly what that line does...we might cringe at it, but we know how to read highlly optimized code.
What does that code do?
__________________
Anticipating: GTA V, The Banner Saga, Wasteland 2, Assassin's Creed III, Overgrowth, Star Wars: 1313, Double Fine Adventure, Grim Dawn, Guild Wars 2, Doom 4, MechWarrior Online, Hawken, Far Cry 3, Dishonored, Xenonauts, Baldur's Gate EE
Delicieuxz is offline  
Old 06-01-2009, 12:19 PM   #43
IceColdDuke
Re: C/C++ Tutorials or Books
Quote:
Originally Posted by Delicieuxz View Post
What does that code do?
It gives u the size of a structure * numpoints, its a really unsafe way of doing it tho...
IceColdDuke is offline  
Old 06-01-2009, 01:11 PM   #44
Bad Sector

Bad Sector's Avatar
Re: C/C++ Tutorials or Books
Quote:
Originally Posted by IceColdDuke View Post
John Carmack wrote that :P.
Then its even more likely to be a brain-dump :-P.

(with brain-dump i mean that kind of code that when you write it makes absolutely sense because it is exactly what you have in your mind and it DOES work but when you or someone else see it later you'll think that you would have written in another way - but since it doesn't hurt, you leave it alone)

The problem with brain-dumps is that in most cases other people don't understand them because they're "dumps" of your brain state :-P. If thats not an issue, they're usually pretty harmless.
Bad Sector is offline  
Old 06-02-2009, 07:47 AM   #45
Delicieuxz

Delicieuxz's Avatar
Re: C/C++ Tutorials or Books
Quote:
Originally Posted by AllAmericanJBert View Post
I would really appreciate if someone could point out some good tutorials or books on how to program in C/C++ (preferably C)


-AllAmericanJBert
I have a C++ book (that's slightly outdated), and I've been watching the video tutorials on programmingvideotutorials and 3D Buzz, and the 3D Buzz tutorials have been immensely helpful and coherent. It's especially beneficial when reading a chapter in my C++ book and then watching the video tutorial going over the same thing, it really results in me understanding and the information sticking.

You can watch the whole first 3 volumes of Buzz 3D's C++ tutorials for free on their website from this page. That's over 8 hours of tutorials, by the end of which you will have created a sprite based game. I think it's an amazing resource.
__________________
Anticipating: GTA V, The Banner Saga, Wasteland 2, Assassin's Creed III, Overgrowth, Star Wars: 1313, Double Fine Adventure, Grim Dawn, Guild Wars 2, Doom 4, MechWarrior Online, Hawken, Far Cry 3, Dishonored, Xenonauts, Baldur's Gate EE
Delicieuxz is offline  
Old 06-02-2009, 07:57 AM   #46
AllAmericanJBert

AllAmericanJBert's Avatar
Talking Re: C/C++ Tutorials or Books
Quote:
Originally Posted by Delicieuxz View Post
I have a C++ book (that's slightly outdated), and I've been watching the video tutorials on programmingvideotutorials and 3D Buzz, and the 3D Buzz tutorials have been immensely helpful and coherent. It's especially beneficial when reading a chapter in my C++ book and then watching the video tutorial going over the same thing, it really results in me understanding and the information sticking.

You can watch the whole first 3 volumes of Buzz 3D's C++ tutorials for free on their website from this page. That's over 8 hours of tutorials, by the end of which you will have created a sprite based game. I think it's an amazing resource.
Thanks, I'm going to check those sites out right now!!!
__________________
*I taught myself C, C++, C#, VB, HTML, and Javascript. At the moment, I am teaching myself Java, Perl, Objective C, and x86 assembly.*

I'm nuts!
AllAmericanJBert is offline  
Old 06-02-2009, 08:34 AM   #47
Delicieuxz

Delicieuxz's Avatar
Re: C/C++ Tutorials or Books
My advice, programmingvideotutorials (which I bought a month-long subscription for) is worth bypassing. It's too much information being shot out in a steady jet-stream without appropriate explanation. I couldn't follow it myself, and could only partially grasp what was being talked about after going over it thoroughly in my C++ book. 3D Buzz is a whole different story. I've been going well past where I'm at in my C++ book, and I'm having absolutely no trouble following along. Major props to the 3D Buzz videos.

If the 3D Buzz tutorials continue to be as easy to follow, I think it's a guarantee that I'll pay the $100 for the complete series on DVD once I've exhausted the 3 free volumes. I've also found those 3 volumes for download via torrent, and having them downloaded can make it easier to skip back and forth through them on the fly since you don't have to wait for buffering of the videos.
__________________
Anticipating: GTA V, The Banner Saga, Wasteland 2, Assassin's Creed III, Overgrowth, Star Wars: 1313, Double Fine Adventure, Grim Dawn, Guild Wars 2, Doom 4, MechWarrior Online, Hawken, Far Cry 3, Dishonored, Xenonauts, Baldur's Gate EE
Last edited by Delicieuxz; 06-02-2009 at 08:39 AM.
Delicieuxz is offline  
Old 06-19-2009, 03:17 PM   #48
Delicieuxz

Delicieuxz's Avatar
Re: C/C++ Tutorials or Books
AllAmericanJBert, how's the C++ going? I wanted to amend my previous statement that programmingvideotutorials is worth bypassing, because I've found it to be an absolutely excellent recap of information learned from the other sources. That it hits you with so much so fast is why it's not the best for your primary learning source, but it's also the reason why it's the absolute best recap/quick reference source I know of. It also contains information that isn't present in the other sources I've used. It seems to be thorough in content, but just not in explanation of the implementation of that content.
__________________
Anticipating: GTA V, The Banner Saga, Wasteland 2, Assassin's Creed III, Overgrowth, Star Wars: 1313, Double Fine Adventure, Grim Dawn, Guild Wars 2, Doom 4, MechWarrior Online, Hawken, Far Cry 3, Dishonored, Xenonauts, Baldur's Gate EE
Delicieuxz is offline  
Old 06-20-2009, 01:52 PM   #49
peoplessi

peoplessi's Avatar
Re: C/C++ Tutorials or Books
Impossible to recommend a site that hasn't got any examples/free videos available. Talking about programmingvideotutorials. I wouldn't really spend $10 on that.
__________________
Duke Nukem Forever
Who am I to judge?
peoplessi is offline  
Old 06-21-2009, 03:13 AM   #50
Delicieuxz

Delicieuxz's Avatar
Re: C/C++ Tutorials or Books
They do have sample videos available, and $10 lets you download everything on the site.
__________________
Anticipating: GTA V, The Banner Saga, Wasteland 2, Assassin's Creed III, Overgrowth, Star Wars: 1313, Double Fine Adventure, Grim Dawn, Guild Wars 2, Doom 4, MechWarrior Online, Hawken, Far Cry 3, Dishonored, Xenonauts, Baldur's Gate EE
Delicieuxz is offline  
 

Bookmarks

Tags
c/c++ programming


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 06:43 AM.

Page generated in 0.11788201 seconds (100.00% PHP - 0% MySQL) with 18 queries

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

Website is ©1987-2014 Apogee Software, Ltd.
Ideas and messages posted here become property of Apogee Software Ltd.