Im teaching myself C++. Got any good tips/good resources for me?
Jengo
Pasco, WA | USA
Well guys. Im beggining C++, currently im using the C++ for Dummies book i bought at Barnes and Nobles. im currently in the 3rd chapter, and its starting to get tricky, im trying to take it slow and absorb the knowledge into my brain. but i just want to learn it so fast!!!
Any good books on C++ or tutorials etc. that you guys reccomend? any tips and advice is very appreciated. i want to make this as painless as possible!!
thanks for your help guys!
Any good books on C++ or tutorials etc. that you guys reccomend? any tips and advice is very appreciated. i want to make this as painless as possible!!
thanks for your help guys!
0
Comments
Make sure you get a good understanding of data types, if/else, loops, structures, arrays, and classes. The STL is also fun to look at to see lots of neat functionality already implemented. After that you can pretty much write whatever you want.
Don't forget about google when you are looking for some code snippets, you will find tons of links and help!
Code Complete, Second Edition
C++ Reference Book:
Object-Oriented Programming in C++ (4th Edition)
I think you'd really benefit from these books. They teach you good programming practices and a good reference book is fun to page through when you don't want to sit in front of the computer. I paged through the OOP in C++ book on my comfy couch and learned tons of stuff. Google.com filled in any gaps or quandries.
I hope this helps. Of my many programming books, these are two I'd never part with... along with my PHP Bible.
But... for some reason.. i am lost. Now that i know the very basics i dont know how to implement it to make a program... i can make very simple things like small programs to find averages and small programs to help with math.. but is this really what programming in C++ is?? it seems so boring... i mean... How do you implement this... say... into making a 2D game? or... some sort of web browser... or anything that doesnt involve Adding numbers in a Dos prompt... what i mean is... How do i get it visual!!?? how can i make things that look nice!? its just a black DOS box with letters and numbers.. ahhhh!!
I feel so lost, i thought this was going to be way different. The whole reason why I wanted to learn C++ was to maybe make small 2D games and port them to many different types of OS's and maybe make a few small apps. but this isnt like i thought it would be... can you help me out guys?
Oh, and learning C++ is HARD!!! any easy language out there that i might try and get into first? something that would let me get an understanding for programming a little more? cause i seem lost in a giant ocean there are so many questions i have... but a book cant answer questions..
thanks for all your help guys.
im gonna blow up!!
:bawling:
If you're looking for an easier language, you could start with Java, although it's not a language that you'd want to stick with. You could also look at C#, which is much easier to design Windows programs in. Or, you can jump to PHP and make web pages. PHP is very similar to C++.
Probably the best thing you can do is run down to Barnes and Noble and page through some books for a couple of hours. Use Amazon.com to find reviews on the books you like or point you in the direction of what books to look at.
Ultimately, I'm probably not the best source for help with game design. I'm focusing on programs that interact with databases.
Have fun.
Also have you learned Functions? Classes? Mastered Pointers? Linked Lists? Queues? File I/O? Then there is the Visual part of C++. Get yourself a Visual C++ book/tutorial to start with to learn how to get stuff from the labels in the program to the correct data types.
C++ is VERY powerful. Games and your OS is written in C and Assembly. Did you know you can insert asembly into C++ code?
_asm
{
inc i
}
is the same thing as i++ but i++ is actually 3 lines of assembly where you could use inc i instead. Thats just one example. But yeah you can edit the registers available to used by programs using a _asm assembly block inside of C++. Thats totally cool.
Edit: Java Sucks! If you want something easier than C++ go with Visual Basic. Its pretty basic, thusly the name.
All the open-source apps i find are done in other languages...
Yes, Java does suck. However, if you don't want to learn C#, Java is a good intro language. Luckily, I only had to take 3 semesters of it. I'm not a fan of Visual Basic. It's too easy and I don't think anyone can say they're a true programmer if they know VB.
To answer Jengo's question. GCC is free. That coupled with VIM (a text editor) isn't too bad. If your looking for a more full blown IDE, then you may want to consider the Visual C++ 2005 Beta, which is currently free. If you want a free copy of Visual Studio 2005 when they launch, I hear that M$ is going to give away copies at the kickoff party.
http://www.slickdeals.net/category/newdeals/?daysago=10#p6581
but what i meant was, do you guys know of any applications that are done in C++ that are open source, so view its code. Like a full blown app done in C++ so i can look at how programmers utilize the commands im learning. it would be very helpfull to me, i cant seem to find one that is done in C++
thx!
I just mentioned BASIC because it is basic, just something to learn the general idea about programming.
Yeah I have VS.net 2005 Beta which I got free but then I also have 2003 from school as well. There is a G++ compiler in Unix that I have used at school but VS is much easier to work with.
thats not true at all, programming is not just about knowing a language, a good (true) programmer is someone who can analyze a problem, and come up with a good solution for it - regardless of the language that he chooses to implement it in. For the problem - write the words "hello world" on the screen, PRINT "hello world" is a lot better solution than:
edit:// - heres a few more fun ones http://www.fitzrovian.com/hello.html
?
Once you had one in mind, learning another one is done pretty easily. As other people around here, I would recommand to start from c#, and then you could more easily go 'backward' and go down the way to c++, and even c. You'll also have a good view of 'what it is now' (c#) compare to all of 'what it was' (C++, C...)
EDIT : If you found c++ or c# a bit too tricky , some may say to go with VB... Personnaly i would not recommand it as it is the worst langage ever made. Not enough structure restriction, its like IE that will do whatever he can to show a page , even if what he gives as final result is not what you were waiting for... VB is not the good langage if you wanna be a GOOD programmer It's use cuz it can makes sh*tty program really fast. At least if you do VB don't forget to put clause (i forget the name) to disable the auto-optimisation as it is the best way to make a program compile and not working well. If you still wanna start easily you could go with Borland Delphi (Pascal). This is the first langage i've ever learn and this is great to start learning the base of programmation in a 'good way'
That's realy how i made my way in the wonderful world of programmation. Don't hesitate to search google for any problem you have, as c# and c++ are well documented and have a lot of good forums for online help