MYCPLUS
C and C++ Programming Tutorials and Source code
- Website
- mycplus.com · all feeds from this site
- Feed URL
https://www.mycplus.com/feed/
Read it in your FeedListing reader
Or add to: Feedly Inoreader Raw feed
Latest posts
-
What Is a Game Engine? How Game Engines Work, and Which Ones to Learn in 2026
What a game engine is, what's inside one and how its game loop works, with a tested C++ example, plus a comparison of Unity, Unreal Engine, Godot and Source 2 in 2026: licences, languages, games, and how to choose. The post What Is a Game Engine? How Game Engines Work, and Which…
-
Serpent Cipher Explained: How It Works, With Code in C, C++, Java, Python and C#
The AES finalist with a 32-round safety margin: how Serpent works, why two correct versions disagree, and four mistakes that a round-trip test misses. The post Serpent Cipher Explained: How It Works, With Code in C, C++, Java, Python and C# written by Muhammad Saqib first…
-
Abstraction in Object-Oriented Programming: Abstract Classes and Interfaces in C++, Java and Python
How abstract classes, interfaces and Python protocols separate what code does from how, with a testable clock example in C++, Java and Python. The post Abstraction in Object-Oriented Programming: Abstract Classes and Interfaces in C++, Java and Python written by Muhammad Saqib…
-
Encapsulation in Object-Oriented Programming: Private State and Invariants in C++, Java and Python
How private state and checking methods keep an object valid, why a getter can leak it, and how Python gets encapsulation from properties and convention. The post Encapsulation in Object-Oriented Programming: Private State and Invariants in C++, Java and Python written by…
-
Inheritance in Object-Oriented Programming: Types, Examples in C++, Java and Python, and When Not to Use It
One base class and two subclasses written in C++, Java and Python, the five types of inheritance, and why a subclass counted six tags when three were added. The post Inheritance in Object-Oriented Programming: Types, Examples in C++, Java and Python, and When Not to Use It…
-
Multiple Inheritance in C++: Interfaces, Name Clashes, the Diamond Problem and Virtual Bases
What changes when a C++ class has two bases: offsets, ambiguous names, a duplicated base in the diamond, and who constructs a virtual base class. The post Multiple Inheritance in C++: Interfaces, Name Clashes, the Diamond Problem and Virtual Bases written by Muhammad Saqib first…
-
Inheritance in C++: Access, Constructors, Overriding and the Pitfalls That Compile
How C++ inheritance works and where it fails quietly: default private bases, hidden overloads, a missing virtual destructor, and arrays of derived types. The post Inheritance in C++: Access, Constructors, Overriding and the Pitfalls That Compile written by Muhammad Saqib first…
-
DirectX Components Explained: From DirectDraw to Direct3D 12
A history of DirectX from Windows 95 to DirectX 12 Ultimate, with pixel formats, palettes, pitch and double buffering explained in tested C code. The post DirectX Components Explained: From DirectDraw to Direct3D 12 written by Muhammad Saqib first appeared on MYCPLUS .
-
Heap Sort in C, C++, Java, Python and C#: Heaps, Sift-Down and Real Costs
Heap sort is O(n log n) in place on every input. How the heap lives in an array, code in five languages, and what the guarantee costs against quicksort. The post Heap Sort in C, C++, Java, Python and C#: Heaps, Sift-Down and Real Costs written by Muhammad Saqib first appeared on…
-
Merge Sort in C, C++, Java, Python and C#: Top-Down, Bottom-Up and Linked Lists
Merge sort is stable and O(n log n) on every input. Code in five languages, measured comparisons and allocations, and four mistakes that compile. The post Merge Sort in C, C++, Java, Python and C#: Top-Down, Bottom-Up and Linked Lists written by Muhammad Saqib first appeared on…
-
Selection Sort in C, C++, Java, Python and C#: Swaps, Stability and Speed
Selection sort always makes n(n − 1)/2 comparisons and at most n − 1 swaps. Code in five languages, measured counts, and three mistakes that sort. The post Selection Sort in C, C++, Java, Python and C#: Swaps, Stability and Speed written by Muhammad Saqib first appeared on…
-
Insertion Sort in C, C++, Java, Python and C#: How It Works and What It Costs
Insertion sort moves one element per out-of-order pair. A traced example, code in five languages, and measurements that show what that costs. The post Insertion Sort in C, C++, Java, Python and C#: How It Works and What It Costs written by Muhammad Saqib first appeared on…