Thursday, July 30, 2009

I am 15 and want to learn c++, very dedicated, what sites, books and tutorials can teach an absolute beginner?

I know c++ is a hard programming language to learn and not good for beginners but i want to jump right in, any and all information is welcome

I am 15 and want to learn c++, very dedicated, what sites, books and tutorials can teach an absolute beginner?
hi check these links,





hope this will help





good luck
Reply:steven25t gave you a list of sources. Click on each and every one and please mark him as best answer.





That said, it's time to talk about compilers. I will assume you are on Windows, and since you are fifteen and described C++ as a "hard programming language" (it's sophisticated but if you really want to do anything with it even BASIC can be hard) I will assume both that you don't currently have a compiler and that you don't have a lot of money for one.





There is a problem there, especially for a fifteen year old Microsoft and Borland C++ compilers can be costly. If you are a college student you can usually get a discount on them through your school, but while Borland makes some older versions of its compiler free with the purchase of how to program in C/C++ textbooks you are advised to look at at your local brick and mortar bookstore (Barnes and Noble, Waldenbooks, B. Dalton) Microsoft has its own "free" version which is essentially just annoying. Before it does anything at all, it makes you click on an alert box which says you agree not to redistribute this program in any form. I've actually had machines crash on me because of that alert box, which is one reason I no longer use Windows. Borland does make its latest compiler available for free if you want to use it using the command shell (which means either open a window using that old MS-DOS prompt icon or whatever they call it in Vista) and it is a skill worth having. It does make it difficult to learn how to program for Windows once you learn how to program, though. The other versions have an integrated debugging editor which is something most people will tell you not to live without, though it isn't strictly necessary.





On Windows there are some surprising other alternatives. http://www.digitalmars.com offers a compiler which is as good as Microsoft's or Borland's, or GCC's (which I'll get to). You can order a CD version for $54 or you can get a free version which like Borland's you pretty much have to use from the command line.





There are even some free on-line compilers. Comeau.com offers a chance to try out their compiler for free (though it's a little complicated) at http://www.comeaucomputing.com/tryitout/ . If you want to try out a small program in C (not C++) you can go to http://www.delorie.com/djgpp/compile/ and use a windows port of the GCC compiler. Finally, check out http://www.ccompile.com





GCC is the oldest compiler out there. It was originally written for Unix but as what we now call FOSS (Free and Open Software) by a man named Richard Stallman in 1985. A few years later, before Windows, Stallman gave a speech in which he explained why he thought it would never be ported to MS-DOS. A man named D. J. Delorie heard him and the result was DJGPP. This is still maintained by volunteers. It is up-to-date both in terms of syntax and in terms of its ability to handle modern machines. Unfortunately its IDE packages are at best adequate and its Windows handling package might be charitibly described as awful. For an absolute beginner, it's a good choice till something better comes along. Delorie went on to help develop a better Windows-specific port called "DevC++". It has an IDE (Integrated debugging editor) as good as Microsoft's or Borland's. You can get it at Bloodshed dot com in the sources. Again, you can use it for free, and, because it is GCC it accepts any program written in standard C or C++ and compiles it properly. Incidentally, Linux, which I'm using, uses some GCC libraries and it was through GCC that I became interested in using Linux.





The easiest or best way to learn a computer language is to get your hands on a compiler and to play with it. While tutorials are very helpful, finding them can be much less of a problem, and I hope I've given you what you need to take full advantage of steven25t's excellent answer.
Reply:If you do not know anything about programming try something else before c++, like java.





If you have the basis, you know what a variable and an algorhytm is, you get plenty of tutorials and books like C++ for dummies and so on which are perfect for anybody in order to learn..
Reply:Before learning any programming language, you should learn the basic principle of programming first. C++ is an object oriented programming language, OO is the most popular programming paradigm nowadays. Before OO, there are procedural programming paradigm (using QuickBASIC, PASCAL, C) and functional programming paradigm (using LISP, PROLOG).





If you want to quickly master C++, learn the fundamentals of OO. What are objects? What are classes? How are they related? How are they managed in your program? You should know all these.





The above answer has a good link to books, you can follow that.


No comments:

Post a Comment