Wanting To Learn C++
<div class="IPBDescription">or any C variant</div> Yeah, so what's the easiest, what do I need and is there any site where I can find some tutorials?
(I'm trying to get into college for computers (prefferably software writing) so...yeah)
Thanks in advance
Also: Please ignore all speeling mist4kes. My damage is brained.
(I'm trying to get into college for computers (prefferably software writing) so...yeah)
Thanks in advance
Also: Please ignore all speeling mist4kes. My damage is brained.
Comments
As for compilers, a decent (free) one that includes GUI is Bloodshed Dev-C++, but you'd probably do better with an introductory version of MSVC++.
<a href='http://www.bloodshed.net/devcpp.html' target='_blank'>http://www.bloodshed.net/devcpp.html</a>
If you're having trouble with pointers, what they're there for and why you should give a flying rats ****, feel free to ask - That topic stumped me for a while.
If you're going to learn C++ (which I wouldn't recommend without some sort of prior programming experience), don't believe people when they say you should learn C first, and try not to buy a "C++" book that's really only teaching C style C++. The problem with C++ is that it's got a lot of seperate features that can be used as necessary, and the C part is only one part of it. Basically, if the running tutorial is building a string class, it's trying to teach you C (C++ has a string class in the standard library).
As for compilers, a decent (free) one that includes GUI is Bloodshed Dev-C++, but you'd probably do better with an introductory version of MSVC++.
<a href='http://www.bloodshed.net/devcpp.html' target='_blank'>http://www.bloodshed.net/devcpp.html</a>
If you're having trouble with pointers, what they're there for and why you should give a flying rats ****, feel free to ask - That topic stumped me for a while. <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
Dev C++ = win. And whats cooler: The tutorials included in that are pretty good!
It may be very basic, and useless as anything, but it DOES teach you programing techniques and skills which are used in any other major programming language.
It's capabilities range from platform games, to Real-time strategies, to Doom-like 3D, to even MULTIPLAYER games. (Serious ppl, serious.)
If you're a total newbie it <b>will</b> show you how variable the difficulty in programing can be. Top-down action games are the simplest; real-time strategies and 3D engines are the most difficult. So, take a look over it, glance at some of the examples, play some of the GM games made by other people to feel what it can do, then play around with what GM can do with it's "Game Maker Language" (GML)
Once you use GM for a while, and you glance at that "How to program in C for nubbies" book, it will be less intimidating.
Best of all it's free...
Course some of the better things (like multiplayer) are restricted until you register the software, so it is in fact shareware. Fortunetly, only 1-5% of the code commands and such are under the "restricted/regestered version" area, so you still have lots of freedom.
I used a variant on BASIC called BarkBASIC that comes with native D3D7 support.
It sucks, don't buy it.
O:
Plus, unlike C++, a single person can understand the whole of the language...
Mix that site with a decent book or preferably some classes and you'll be coding in no time ^^
That is what i am using... I started mreot han 21 days ago... it bores me sometimes - I would of had all that done by now but ah well ey!
As I have expressed in the past, I will say again:
Don't go w/ online tutorials for coding. In general, you can't learn good programming practices from them as well as you can from a book. And don't buy "Learn ________ in 21 days", because you won't. I had a good book to recommend but its not printed anymore plus I forgot the name of it, but I highly suggest you look around for an actual printed book and learn from that.
Step 1:
Get a compiler. If you can get your hands on some version of microsoft visual c++, I really recommend that as its setup is as simple as it gets. And I've had some bad experiences with Dev-C++ crashing while I'm typing (which is flat-out not cool).
Step 2:
Compile and run an existing copy of the "Hello World" program.
Step 3:
Go out and <u>do</u> get one of those "In 21 Days" books.
Step 4:
Read the book, but do NOT stop to do the exercises if they have any. Just read the whole book and try to absorb small portions of whatever it has to teach. It's understandable that you WILL be confused most of the time. But as long as you see small parts of the big picture, you will be better off.
Step 5:
Pick some topics that interested you from the book, such as creating variables, or input/output. And just play around with that topic in the hello world program, using the book and it's exercises as reference material.
Step 6:
Goto Step 5. Repeat ad-infinitum until you know the material in the book.
Step 7:
Pick an effect that you've seen done in other programs. Attempt to clone that feature using google as a refernce to find miscellaneous source code online.
Maybe that didn't come across clearly. I didn't do all those languages in preparation to learn C++ <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html//emoticons/smile-fix.gif' border='0' style='vertical-align:middle' alt='smile-fix.gif' /><!--endemo-->