C & C++
5 articles in this category.
Advertisement-
External sort explained: sorting data that does not fit in memory
What external sorting is and why it exists: splitting a huge file into sorted runs, merging them with a k-way merge, how many passes it needs, and a complete Python implementation tested on a million numbers with a memory comparison.
-
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.
-
Fundamentals of technology: programs, operating systems, memory and storage
The ideas to understand before learning to code: what a language and a program are, how a text editor differs from an IDE, what an operating system does, how RAM and storage differ, how data is stored as bits and bytes, and how a program actually 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.