on other programming languages, but none on c++, do you know any free ebooks out there on C++?? (no ebooks are not illegal)

Dani AI

Generated

A compact, practical addendum for this thread. The original request from asked for a single downloadable primer for a complete beginner; replies from , and pointed to online tutorials and free texts. Below is a short checklist for choosing a legal, beginner-friendly ebook, a minimal compile/run example, a recommended learning order, and common beginner pitfalls — all geared toward learners using older Windows IDEs like those mentioned in the thread.

  • What to look for in a downloadable beginner book:
    • Clear, stepwise progression (syntax → functions → OOP → STL).
    • Worked examples and exercises with answers.
    • Downloadable sample code in plain files.
    • A note about which C++ standard or compiler/dialect the book targets.

A tiny compile-test example (modern form):

#include <iostream>

int main() {
    std::cout << "Hello, world\n";
    return 0;
}

With a GCC/MinGW toolchain: g++ hello.cpp -o hello.exe then run hello.exe. Many IDEs (DEV-C++, Borland) provide build/run buttons; if an example in a book uses legacy headers like <iostream.h> or omits std:: qualifiers, adapt to the modern form above or consult the book's target compiler notes.

Suggested learning progression and practice projects:

  1. Compiler basics and simple I/O, control flow, functions.
  2. Arrays, strings, and basic data structures.
  3. Classes, encapsulation, constructors/destructors.
  4. Standard Library containers and algorithms (vectors, strings, maps).
  5. Pointers, ownership, RAII and smart pointers.
  6. Templates and basic generic programming.

Beginner pitfalls and tips: compile often, keep programs tiny, read compiler messages line-by-line, avoid raw pointer ownership until RAII is understood, and prefer exercises that force debugging. For long-term learning, prefer legally hosted PDFs from authors or university course pages and consider a modern free toolchain if the current IDE lacks support for newer language features.

Recommended Answers

All 6 Replies

What kind of detail are you looking for? A quick google search turned up several tutorials.. not exactly an "e-book", but effective all the same... example: http://www.cplusplus.com/doc/tutorial/

im lookign for a pretty solid downloadable file that i cn go by for the complete basics to c++, i mean im coming with no experince at anything! C++ will be my first.

i have two compliers, borland C++ builder 3.0, and DEV C++

Try www.cprogramming.com It's got both C and C++ tutorials and some FAQs that are usefull...

What kind of detail are you looking for? A quick google search turned up several tutorials.. not exactly an "e-book", but effective all the same... example: http://www.cplusplus.com/doc/tutorial/

Thank you very much, it is a good site for me to learn C++.

yes I know exactly what u r looking for, try searching in google "Thinking in C++". It's a free ebook, and the one of the best books on C++. Hope it was useful.

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.