C++ How to Use Friend Classes in C++ to Access Private and Protected Members In this article at OpenGenus, we will be going over friend classes in C++, what they're used for, usage examples, difference between friendship and inheritance, and alternatives.
C++ Lazy initialization in C++ Lazy initialization is a technique where the creation of an object is deferred until it is actually needed. This can improve performance by avoiding the creation of objects that are never used.
C++ Bank Management System in C++ [Project with source code] In this article at OpenGenus, we will cover how to create a bank management system in C++ programming language. A bank management system can be used to manage a bank account, withdraw and deposit funds, and check the account balance.
Software Engineering Adapter Design Pattern In this article at OpenGenus, we show two ways to implement the Adapter design pattern.
C++ 50 Interview questions on C++ Struct In this article at OpenGenus, we have presented 50 interview questions based on struct (Structure) in C++ and C Programming Language. Each question is provided with the answer and detailed explanation.
C++ Min / Max Heap in C++ using STL In this article at OpenGenus, we are going to study and explore Min / Max Heap in C++ using STL. We will see their definition, usage and how we are going to apply them to solve various complex problems in C++ language.
C++ Floyd Warshall Algorithm in C++ Floyd Warshall Algorithm is one of the famous graph algorithm for finding shortest path between a node to every other node. In this article at OpenGenus, we have implemented Floyd Warshall Algorithm in C++ programming language.
C++ Spell Checker Console Application in C++ [Project] In this article at OpenGenus, we will cover how to create a spell checker application using C++ programming language.
C++ Heap in C++ using OOP and Template In this article at OpenGenus, we will explore how to implement the heap data structure in C++ using principles of object-oriented programming (OOP) and templates.
C++ Multilevel inheritance in C++ Multilevel inheritance is a form of inheritance where a base or child class has multiple parent classes and can be extended to any level.
C++ Hangman Game in C++ In this article at OpenGenus, we will cover how to create a console hangman game in C++ programming language. Hangman is a popular word-guessing game that involves one player picking a random word, providing the number of letters in that word.
C++ Map::swap() in C++ The swap() function in C++ is used to interchange the elements of two variables. Similarly, the Map::swap() member function is used to swap the elements of two map objects.
C++ Selection Sort in C++ using Inheritance and Template - Recursive and Iterative In this article at OpenGenus, we will explore how to implement Selection Sort in C++ using the principles of object-oriented programming (OOP) and templates. We will define both recursive and iterative approaches to the algorithm.
C++ Doubly Linked List in C++ using OOP and Template In this article at OpenGenus, we will review how we can utilize OOP and templates to create a versatile and efficient implementation of a doubly linked list in C++.
C++ Insert element in unordered_map in C++ STL [3 methods] In this article at OpenGenus, we will explore different ways to insert elements in unordered_map in C++ STL. This can be greatly helpful in using maps and solving complex coding questions.
C++ Vector of Map in C++ In this article at OpenGenus, we will mainly know about vector of map. Beforehand, we will know briefly about what is vector in C++. Vector is a part of Standard Template Library of C++.
C++ Stack::Empty in C++ STL Among the available functions provided by the C++ standard library is the stack::empty function. Stack::empty is used to determine whether a given stack is empty. The function returns true if the stack is empty and false if it is not empty.
C++ Convert C and C++ code to Assembly Code In this article at OpenGenus, we have explained how to convert / compile a C or C++ code to Assembly code using GCC or G++ compiler.
C++ Queue in C++ STL for User-Defined Objects In this article at OpenGenus, we will explore the fundamentals of the Queue data structure with a user-defined objects and how C++ provides a powerful Standard Template Library (STL) which has a container for queue which you can use in your code.
C++ Deep vs Shallow Copy in C++ Two common types of copying objects in programming are shallow copy and deep copy and we will discuss them in this article at OpenGenus.
C++ VPOPCNT: Number of set bits In this article at OpenGenus, you must have the complete idea of VPOPCNT assembly instruction that is used to get the number of set bits.
C++ MOVSX, MOVSXD - Move with Sign Extend, Doubleword In this article at OpenGenus, we have covered 2 important assembly instructions namely MOVSX and MOVSXD which is used to move a data considering sign bits. It is an alternative to MOVZX.
instruction set Exit program in Assembly code In this article at OpenGenus, we have explored how to exit a program written in Assembly.
C++ MOVZX - Move with Zero Extend In this article at OpenGenus, we have explored the concept of MOVZX assembly instruction in depth with code examples.
C++ C++ program to print Rhombus Pattern In this article at OpenGenus, we will learn to print Rhombus pattern in C++ language. We will go with two types of Rhombus patterns that is solid Rhombus and hollow Rhombus.