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
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