Getting Started with C/C++
Exactly How to Get Started with C/C++ Today
Okay, let's cut to the chase--you want to learn to program in C/C++ and you want to know exactly what you should do, right now.- Go here and follow our super-simple instructions on setting up a C/C++ compiler (A compiler will let you run the code you write)
- Start our C++ Tutorial ( If you want to learn C, go here. Not sure? I suggest C++.)
- If you're feeling overwhelmed, read The 5 Most Common Problems New Programmers Face--And How You Can Solve Them
- Checking out our From C++ Beginner to C++ Expert book series.
- Reading 5 Ways to Learn Programming Faster
- Working through practice programming problems
- Quizzing yourself
- Keep up with the latest information by subscribing to cprogramming.com by Email or RSS
Want more details, read the rest of this page.
What is C, What is C++, and What is the Difference?
C is a programming language originally developed for developing the Unix operating system. It is a low-level and powerful language, but it lacks many modern and useful constructs. C++ is a newer language, based on C, that adds many more modern programming language features that make it easier to program than C.Basically, C++ maintains all aspects of the C language, while providing new features to programmers that make it easier to write useful and sophisticated programs.
For example, C++ makes it easier to manage memory and adds several features to allow "object-oriented" programming and "generic" programming. Basically, it makes it easier for programmers to stop thinking about the nitty-gritty details of how the machine works and think about the problems they are trying to solve.
So, what is C++ used for?
C++ is a powerful general-purpose programming language. It can be used to create small programs or large applications. It can be used to make CGI scripts or console-only DOS programs. C++ allows you to create programs to do almost anything you need to do. The creator of C++, Bjarne Stroustrup, has put together a partial list of applications written in C++.How do you learn C++?
No special knowledge is needed to learn C++, and if you are an independent learner, you can probably learn C++ from online tutorials or from books. There are plenty of free tutorials online, including Cprogramming.com's C++ tutorial - one which requires no prior programming experience. You can also pick out programming books from our recommendations.While reading a tutorial or a book, it is often helpful to type - not copy and paste (even if you can!) - the code into the compiler and run it. Typing it yourself will help you to get used to the typical typing errors that cause problems and it will force you to pay attention to the details of programming syntax. Typing your program will also familiarize you with the general structure of programs and with the use of common commands. After running an example program - and after making certain that you understand how it works - you should experiment with it: play with the program and test your own ideas. By seeing which modifications cause problems and which sections of the code are most important to the function of the program, you should learn quite a bit about programming.
Try our C++ Beginner to C++ Expert recommended book series, a six-book set designed to get you maximal information and help take you from beginner to C++ master.
You may also want to read about The 5 Most Common Problems New Programmers Face--And How You Can Solve Them.
What do you need to program in C or C++?
In order to make usable programs in C or C++, you will need a compiler. A compiler converts source code - the actual instructions typed by the programmer - into an executable file. Numerous compilers are available for C and C++. Listed on the sidebar are several pages with information on specific compilers. For beginners, Code::Blocks is our recommended free and easy-to-use compiler.Do I need to know C to learn C++?
No. C++ is a superset of C; (almost) anything you can do in C, you can do in C++. If you already know C, you will easily adapt to the object-oriented features of C++. If you don't know C, you will have to learn the syntax of C-style languages while learning C++, but you shouldn't have any conceptual difficulties.What's the point of learning to program? What can I get out of it?
Ah, a skeptic! You can get a lot of things out of programming. For one thing, it's just plain fun. You can read my opinion on the matter here: Why Learn to Program?I want to make games in C++, what should I do?
It may be a challenging road, but it is doable. This article has more information: so you want to be a game programmer?What does it take to learn to be a programmer?
Great question! Here's an article about what it takes to be a programmer!Do I need to know math to be a programmer?
No! At least, not too much. Most of programming is about design and logical reasoning, not about being able to quickly perform arithmetic, or deeply understanding algebra or calculus. The carryover between math and programming are primarily around logical reasoning and precise thinking. Only if you want to program advanced 3D graphics engines, or do other specialized numerical programming will you need mathematical skill.What do I need to start programming?
You will need a program called a compiler, which will turn the text of your program into something your computer can run.When you actually write your program, you will need to use a text editor like Notepad instead of a document authoring tool like Microsoft Word. You can read all about text editors.
No comments:
Post a Comment