Get Started! : Standard C++ (2024)

Home » Get Started!

Get Started!

1. Get a Compiler

There are good free C++ compilers available for all major OS platforms. Download one that suits your platform:

  • Gnu Compiler Collection: Includes g++, a popular C++ compiler. A build for Windows is available here, builds for other platforms are likely available via your platform's package manager, or you can build it yourself using instructions here.Get Started! : Standard C++ (1)
  • Clang: A new open-source C++ compiler for various platforms.Get Started! : Standard C++ (2)
  • IBM XL C/C++ Compiler: A Clang-based Community Edition is available for Linux on Power, free for production use.Get Started! : Standard C++ (5)

Or try one of these online compiler pages, which offer a range of compilers including the latest from Clang, GCC, Intel, and Microsoft. Some are compile-only to let you check whether your code is legal, and some let you also run your test programs to see their output.

2. Take a Tour

Stroustrup's authoritative "Tour of C++"is a great "lap around C++" by the creator himself, Bjarne Stroustrup. This four-part Tour is drawn from from near-final drafts of Stroustrup's upcoming The C++ Programming Language, 4th Edition, and was published on this site in four installments. (Free.)

3. Web Resources

  • C++ Reference:A site with its main focus on a complete Standard Template Library reference, the Technical Specifications, and a list of selected non-ANSI/ISO libraries. An offline archiveis available.
  • cplusplus.com:A site with general information about the C++ language, a reference, tutorial, and an articles section.

4. Learn More

Finally, here are four great books for learning C++ -- whether you know C++ already or not, and whether you even know how to program in any language or not, you'll find the book that's right for you.

Get Started! : Standard C++ (7)

Are you completely new to programming? If you've never programmed before, why not learn in modern C++?

Programming: Principles and Practice Using C++, 2nd Ed.is an introduction to programming written by the creator of C++, Bjarne Stroustrup. Thousands of college freshmen taking Stroustrup's hugely popular Introduction to Programming class at Texas A&M University, and innumerable readers around the world,have learned programming and launched their careers using this book -- and modern C++.

Get Started! : Standard C++ (8)

Are you looking for "the" one-stop overview of C++?

The new conciseA Tour of C++by Bjarne Stroustrup is thego-to book to answer "what is the book of what you should assume everyone knows about C++?"

Through a modern tour of the language and library, its contents answer the question: What is the basic knowledge that we should be able to assume from a competent C++ programmer?

One could subtitle it:"Around the C++ world in 180 pages."

Get Started! : Standard C++ (9)

Are you new to C++?

The bestselling C++ Primer is one of the most popular books ever for learning C++, written by close colleagues of Bjarne Stroustrup who participated in the development of C++ since its early days.

This authoritative and comprehensive introduction to C++ will help you to learn the language fast, and to use it in modern, highly effective ways. Highlighting today’s best practices, the authors show how to use both the core language and its standard library to write efficient, readable, and powerful code.

Get Started! : Standard C++ (10)

Looking for "the" authoritative C++ reference?

The all-time best-selling C++ book on the planet is Bjarne Stroustroup's The C++ Programming Language.This book is primarily a reference, not a tutorial, but it also contains extensive explanations and many valuable insights and guidelines from the creator of C++ himself.

Get Started! : Standard C++ (11)

Looking for the authoritative tutorial and reference for the C++ standard library?

The C++ Standard Library: A Tutorial and Reference by renowned ISO C++ member Nicolai Josuttis is the most respected book for learning and studying the standard library. It provides comprehensive documentation of each library component, including an introduction to its purpose and design; clearly written explanations of complex concepts; the practical programming details needed for effective use; traps and pitfalls; the exact signature and definition of the most important classes and functions; and numerous examples of working code. You'll find it all here -- everything fromconcurrency and clocks, to the new hash-based containers and regular expressions, to high-quality guidance on how to use key language features like lambdas with it all.

Get Started! : 
            Standard C++ (2024)

FAQs

Can I start C++ as a beginner? ›

C++ is somewhat difficult to learn, especially if you have never programmed before or you have never used a low-level programming language before. If you are a beginner with no programming experience, you should expect it to take at least three months to learn the basics.

How to get started with C++ programming? ›

C++ Install IDE

Popular IDE's include Code::Blocks, Eclipse, and Visual Studio. These are all free, and they can be used to both edit and debug C++ code. Note: Web-based IDE's can work as well, but functionality is limited. We will use Code::Blocks in our tutorial, which we believe is a good place to start.

What is the first standard of C++? ›

In 1998, the ISO working group standardized C++ for the first time as ISO/IEC 14882:1998, which is informally known as C++98.

Is C++ harder than Python? ›

Python's syntax is a lot closer to English and so it is easier to read and write, making it the simplest type of code to learn how to write and develop with. The readability of C++ code is weak in comparison and it is known as being a language that is a lot harder to get to grips with.

What is the salary of Python vs C++? ›

Salaries: C++

A C++ developer has an average salary of ₹7,68,406 per annum in India as compared to the average salary of a Python developer, which is ₹3,88,544 per annum.

How can I learn C++ by myself? ›

On the Cprogramming website, you will learn about the topics you need to build a solid footing in C++. These are a few of the many resources out there that can help you learn C++ for free. You'll cover everything from conditional statements to loops to memory management and computation programming in these courses.

Is C++ alone enough to get a job? ›

C++ is one of the most popular language, so it shouldn't be a big problem finding a job. If you have enough free time I think it is a good idea to start studying another language, like Java or Python. Try to search for your ideal job on internet, to see what employers/companies are looking for.

How long is the C++ standard? ›

The programming world is far more complex today than it was 30 years ago, and modern programming languages reflect that. The C++ standard is 1151 pages; that includes 430 pages of language definition and 770 pages of standard-library description.

Is C++ still used? ›

Both C and C++ are widely used in system programming, including operating systems, embedded systems, and hardware-level programming. Knowledge of these languages is essential for working on low-level aspects of software development.

What version of C++ is standard? ›

C++20 is a version of the ISO/IEC 14882 standard for the C++ programming language. C++20 replaced the prior version of the C++ standard, called C++17, and was later replaced by C++23.

Is C++ too hard for beginners? ›

Suggestions on Learning C++

As with any programming language, learning C++ can be challenging, especially for beginners. However, there are several ways to make the process smoother. One of the most effective ways is to seek help and mentorship.

Is C++ high paying? ›

$98,000 is the 25th percentile. Salaries below this are outliers. $167,500 is the 90th percentile.

What is the easiest game to make in C++? ›

Pacman Game

Although the game is simple to play, programmers invested months in making it as fun as possible. C++ projects for beginners let learners recreate this classic game in less than a day. Making a Pacman game in C++ requires programmers to design a game board before defining Pacman and his enemies' movements.

Is it a good idea to learn C++ first? ›

You'll pick up other languages faster

If you get a good grasp of a general-purpose language like C++, you'll be able to pick up other, more verbose languages like Java, far more easily. Your foundation in C++ syntax will pay off, because C++ helps to understand the logic structure of all programming.

Should I learn Java or C++ as a beginner? ›

Most experts will tell you that Java is easier to learn. It's a newer language than C++ and isn't as complex in its principles or execution. However, there's more to consider than a language's learning curve. Selecting a programming language comes down to what you want to do with it.

Should I learn Python first or C++? ›

Python - if you want to get stuff done quickly and easily, 2.) C - if you want to learn programming from bottom up even if it takes longer until you produce something nice. C++ is a huge thing that has low level tools AND high level tools and a lot of different ways to write a single thing.

Top Articles
Latest Posts
Article information

Author: Velia Krajcik

Last Updated:

Views: 6274

Rating: 4.3 / 5 (74 voted)

Reviews: 81% of readers found this page helpful

Author information

Name: Velia Krajcik

Birthday: 1996-07-27

Address: 520 Balistreri Mount, South Armand, OR 60528

Phone: +466880739437

Job: Future Retail Associate

Hobby: Polo, Scouting, Worldbuilding, Cosplaying, Photography, Rowing, Nordic skating

Introduction: My name is Velia Krajcik, I am a handsome, clean, lucky, gleaming, magnificent, proud, glorious person who loves writing and wants to share my knowledge and understanding with you.