Hi i am trying to find a good C++ tutorial to help get me started with programming. Does anyone know of a good one?

Dani AI

Generated

There are good points in both directions in the replies above. is correct that basic control structures are shared with C, and is also right to warn that learning raw C first can encourage C-style habits that work against modern C++ practice. For a beginner the safest path is to learn programming fundamentals through a C++ resource that emphasizes the standard library and modern idioms (RAII, containers, smart pointers) rather than treating C++ as "C with classes."

A practical learning sequence to follow:

  • Learn the toolchain and how to build code with a modern standard (prefer C++17 or later).
  • Master core syntax and types, then prefer std::string and std::vector over C-style strings/arrays.
  • Learn RAII and resource management; avoid manual new/delete.
  • Learn the STL algorithms and iterators, then basic templates and generic programming.
  • Study move semantics and the Rule of Five; then lambdas and concurrency when comfortable.
  • Build small projects and refactor them to use better abstractions as you learn.

Practical tips and references: compile with a modern compiler and enable warnings (treat them seriously) and sanitizers; for static analysis use tools such as clang-tidy. For an authoritative reference use cppreference and follow practical rules from the C++ Core Guidelines. These help avoid outdated tutorials that teach antiquated or unsafe idioms.

If you prefer books, pick ones that cover modern C++ (C++11+) and include exercises. Start small, write code, fix bugs, and read code from real projects — that practice is what turns tutorial knowledge into working skill.

Recommended Answers

All 5 Replies

>>Start learning C, then you can go into the object oriented parts of C++
Bad advice. Will turn into the "I-write-c++-code-but-am-actually-a-C-programmer".
If you want to learn C++. Learn C++. Don't learn C. Rather it can perhaps spoil your C++.
C++ and C are two different languages.
Read the following thread:http://www.daniweb.com/forums/post818590.html#post818590

Tutorials are rarely good-written for C++. One of the correct C++ tut is . Its not easy, Its not maybe good, but it is CORRECT.

I would suggest to get a book rather than relying on tutorials.
If you have money, buy Accelerated C++ by Andrew Koenig and Barbara E. Moo which in my opinion is the best book which keeps you away from the "dirt" spread on internet about C++. It, from the beginning teaches you pure and perfect C++. A highly recommended book if you want to learn C++.
If you don't have money, go for by Bruce Eckel freely available online on his home page which is itself a piece of art. Great books both of them.

My only request is don't start by the learning-C-and-spoiling-C++ approach. It will eventually lead you in bad C++ programming.

Yes, I agree. I was referring more to the C roots of the language, like if statements, loops, and variables, which you need to know for many languages. But any beginning C++ book will cover those, and will leave out the parts of C that you don't need so much and focus on C++. I would suggest finding a good book on C++. Oreilly is great, wrox and for dummies are good too. Just make sure its a book for beginners, or what ever your skill level is. :D

Hope this helps!

I would suggest to get a book rather than relying on tutorials.

Yeah, I would also do so, books are often much better to learn a programming language, but that's just my personal opinion ...

Further I can recommend you 'C++ Black Book' (by Steven Holzner) and 'C++ Beginners Guide' from Herb Schildt (you can get a free ebook copy at Microsoft's site:
, a very nice book :) )

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.