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 )!
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!
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
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!
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.
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)
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.
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?
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