Basic C & C++
3 articles in this category.
- All
- Python 133
- Tools 30
- Tutorials 20
- DATABASE 10
- PHP 8
- C & C++ 5
- Java 4
- Web Development 2
- General Blogs 1
-
Prime number program in C: from simple loop to the Sieve of Eratosthenes
Write prime number programs in C in four steps: the simple divide-by-everything loop, the n/2 improvement, the square-root and 6k plus or minus 1 trick, and the Sieve of Eratosthenes, with output and timings from real runs.
-
C++ for beginners: classes, the STL, references and smart pointers
A beginner's tour of modern C++: how it extends C, input and output with streams, references, strings and vectors, maps and algorithms from the STL, classes with constructors, inheritance and virtual functions, templates, exceptions and smart pointers, all compiled and run.
-
C language for beginners: programs, types, pointers, structs and files
A practical introduction to C: where it came from, how a C program is compiled, data types, operators, control flow, functions, arrays and strings, pointers, structs, dynamic memory and file handling, with every program compiled and run.