Programming question...

Want to just shoot the breeze? Forum 42 is the place!

Moderator: Moderators

CronoTriggerfan
Moderator
Posts: 4131
Joined: Fri Jan 27, 2006 3:07 pm
Location: University of Michigan - Ann Arbor
Contact:

Programming question...

Post by CronoTriggerfan »

Okay, I'm going to camp this summer to learn how to program games using C++ and DirectX as the compilers. One problem, though; I've never programmed IN MY LIFE! Even though the camp says you don't need to know programming at all to go, I want to have SOME C++ knowledge before attending. Anyone know a good book/reference/program that could teach me the basics of C++? And I mean BASICS (no programming pun intended :wink: )!

Thanks,
CronoTriggerfan
Image
timmeh87
Senior Member
Posts: 3047
Joined: Mon Nov 14, 2005 10:19 pm
Location: Ontario, Canada

Post by timmeh87 »

"sams teach yourself C++ in [some unreasonable amount of time]"

"sam" makes a whole line of books designed to teach you comptuers in anywhere from 24 hours to 3 weeks. ;)
Image

"Linux is only free if your time is worthless"
CronoTriggerfan
Moderator
Posts: 4131
Joined: Fri Jan 27, 2006 3:07 pm
Location: University of Michigan - Ann Arbor
Contact:

Post by CronoTriggerfan »

I was looking at that book today at Borders... looked ok, but have you used it personally? I guess what I'm really looking for is someone who can tell me that they have actually learned programming from a book. Can you verify? Thanks!
Image
Sparkfist
Forum Administrator
Posts: 6754
Joined: Tue Apr 20, 2004 7:12 am
Location: Michigan

Post by Sparkfist »

Programming Logic and Design... it was the college book I used for the Intro Programming class. It doesn't really teach you how to program in C++, at best it has examples of how to program in Object-oriented languages (C++, Java, ect.). It focuses more on teaching you the logic.

If you think it could help I'd say buy, though just so you know most of the example in it are psudo code. So either learn the basics of BASIC or learn the basics of another langauge.

Good luck.
vskid wrote:Nerd = likes school, does all their homework, dies if they don't get 100% on every assignment
Geek = likes technology, dies if the power goes out and his UPS dies too

I am a geek.
CronoTriggerfan
Moderator
Posts: 4131
Joined: Fri Jan 27, 2006 3:07 pm
Location: University of Michigan - Ann Arbor
Contact:

Post by CronoTriggerfan »

Hmmmm... I may need to check that out, if it's not too expensive. Anyone heard of/used this book?: http://www.amazon.com/exec/obidos/tg/de ... ce&s=books
Image
Skyone
Moderator
Posts: 6390
Joined: Tue Nov 29, 2005 8:35 pm
Location: it is a mystery
Contact:

Post by Skyone »

timmeh87 wrote:"sams teach yourself C++ in [some unreasonable amount of time]"

"sam" makes a whole line of books designed to teach you comptuers in anywhere from 24 hours to 3 weeks. ;)
It's so wierd, I have an 11 day Visual Basic Book by them.

WHY 11 DAYS?!

EDIT: Didn't see your post Chrono, I have that book, and the Game Programming All In One by the same guys. It's really good for a beginner as the title says, so yes, get that!
gannon
Moderator
Posts: 6974
Joined: Sun Apr 04, 2004 4:48 pm
Location: Near that one big lake
Contact:

Post by gannon »

I had Sam's teach yourself C++ in 24 hours and it sucked. It did get the code across though, but a lot of the examples were wrong (fairly simple things though) for both *nix and windows.
marshallh
Moderator
Posts: 2987
Joined: Sat Sep 10, 2005 2:17 pm
360 GamerTag: marshallh
Location: here and there
Contact:

Post by marshallh »

I've found books to be too complicated - they're good as a reference AFTER you know the subject matter.

I know what I know just from reading on my own, playing with code samples etc...
Image
Sir Games-A-Lot
Posts: 710
Joined: Thu Apr 07, 2005 7:25 am
Location: Sitting around a table wishing the king would get IBM Consultants

Post by Sir Games-A-Lot »

Try about.com they have a very basic guide to C++ there which I tried but gave up on because I just couldn't find time to make my way through it (not that it's extremely long but time management isn't one of my best skills)
<a href="http://www.nerdtests.com/ft_cg.php?im">
<img src="http://www.nerdtests.com/images/ft/cg.php?val=5780" alt="My computer geek score is greater than 83% of all people in the world! How do you compare? Click here to find out!"> </a>
timmeh87
Senior Member
Posts: 3047
Joined: Mon Nov 14, 2005 10:19 pm
Location: Ontario, Canada

Post by timmeh87 »

yeah ive never used a sams book personally.

it might be easier to learn C first, then learn about C++. C is very easy.
Image

"Linux is only free if your time is worthless"
CronoTriggerfan
Moderator
Posts: 4131
Joined: Fri Jan 27, 2006 3:07 pm
Location: University of Michigan - Ann Arbor
Contact:

Post by CronoTriggerfan »

Thanks for the advice! I'm ordering that book, and I'll try about.com. Do you have a link? Also, I didn't want to learn C first because I was told the move from C to C++ is difficult because C will give you "bad habits". Is this true? The people who told me this are pretty reliable, but I need a second verdict.

Thanks,
CronoTriggerfan
Image
sam fisher
Posts: 1093
Joined: Mon Apr 25, 2005 8:52 am

Post by sam fisher »

Well C++ is object orientated unlike C so it will be different but knowing C will make it actually easier to learn C++ in the first splace as oyu will be familiar. Are yo ucurrently familiar with any programming or even scripting languages?
Image
Sparkfist
Forum Administrator
Posts: 6754
Joined: Tue Apr 20, 2004 7:12 am
Location: Michigan

Post by Sparkfist »

CronoTriggerfan wrote:Thanks for the advice! I'm ordering that book, and I'll try about.com. Do you have a link? Also, I didn't want to learn C first because I was told the move from C to C++ is difficult because C will give you "bad habits". Is this true? The people who told me this are pretty reliable, but I need a second verdict.

Thanks,
CronoTriggerfan
I've read that going from C to C++ isn't the best thing. C is a basic high level language, then you have C++ which is an Object-oriendted language. They share for the most part the same syntax but a lot of articles say to learn C++ first if that's what you want to program with.

As for habits... Don't know all I know if as far as those are conserned is that you don't want to be to low in comments or have "spegetti code". I was told that for every two lines of code you write you should have one for comments. Again that's all I know, and to be truthful I don't know a whole lot.
vskid wrote:Nerd = likes school, does all their homework, dies if they don't get 100% on every assignment
Geek = likes technology, dies if the power goes out and his UPS dies too

I am a geek.
Krepticor
Senior Member
Posts: 1567
Joined: Sun Jan 01, 2006 8:06 pm
Location: Shadow Hearts

Post by Krepticor »

that is a rediculous time frame....

I know people i go the college with who take MULTIPLE SEMESTERS of C++
I refuse to dignify myself with an intelligent and witty signature
sam fisher
Posts: 1093
Joined: Mon Apr 25, 2005 8:52 am

Post by sam fisher »

C is a low level language. Basic is an example of a high level language.
Image
Post Reply