×
Home Discussions Write at Opengenus IQ
×
  • DSA Cheatsheet
  • HOME
  • Track your progress
  • Deep Learning (FREE)
  • Join our Internship 🎓
  • RANDOM
  • One Liner

C++

C++ is a powerful, object oriented and early programming language which is derived from C. It is widely used in production systems and gives huge control to the programmer.

Software Engineering

priority_queue::push() in C++

Push function in priority queue is used to to insert a element in the queue, the element is inserted in the priority queue based on it's value which defines it's priority in the queue.

Hrithik Shrivastava Hrithik Shrivastava
Software Engineering

Different Ways to Initialize Priority queue in C++

We have demonstrated different Ways to Initialize Priority queue in C++ such as using Max Heap, Min Heap and with vector and array.

Hrithik Shrivastava Hrithik Shrivastava
Software Engineering

Arrays vs Vectors in C++

We have explored the differences between array and vectors in C++ in depth along with C++ code examples. Some differences include size of array is fixed while vector is dynamic.

Aayushi Rawat
Software Engineering

Move Semantics in C++

Move semantics is moving ownership of objects around and this includes concepts of move constructor.

Aryan Rawlani
Software Engineering

Alternatives to Vector in C++

In this article, we have explored the alternatives of Vector in C++ such as array, Deque, Linked List, map and multiset.

Ashutosh Kumar
Data Structures

Implementing a Binary Search Tree (BST) in C++

In this article, we have explained the idea of implementing Binary Search Tree (BST) from scratch in C++ including all basic operations like insertion, deletion and traversal.

Sahil Silare Sahil Silare
Software Engineering

Different ways to add elements in Priority queue in C++

Priority queue is an adapter which uses a vector by default as an underlying container, but a deque can also be used. In this article, we have explored Different ways to add elements in Priority queue container in C++.

Anuj Singh
Software Engineering

unordered_set in C++ STL

In this article, we have discussed about the unordered_set container class of the C++ Standard Template Library. unordered_set is one of the most useful containers offered by the STL and provides search, insert, delete in O(1) on average.

Ayush Mehar
Software Engineering

Cin and Cout in C++

C++ uses the concept of streams to perform I/O operations. A stream is a sequence of bytes in which character sequences are 'flown into' or 'flow out of'. In this article, we have covered cin and cout in C++ in depth.

Avantika Balaji
Software Engineering

Simplified: C++ STL Lists

In this article, we have explored List in C++ STL in depth along with its member functions and applications. It is a good alternative to arrays.

Mannan Bansal
Software Engineering

Template Class in C++

Template class in C++ is a feature that allows a programmer to write generic classes and functions which is useful as the same class/ function can handle data of multiple data types.

Abhiram Reddy Duggempudi Abhiram Reddy Duggempudi
Software Engineering

Private Inheritance in C++

In this article, we will be learning about Private Inheritance in Object Oriented Programming (OOP) with reference to C++. Private inheritance involves the use of Private Access Specifiers for its member functions and data members.

Pulkit Sharma
Problems on Binary Tree

Implementing Binary tree in C++

In this article, we have explored how to implement Binary Tree Data Structure in C++ including all different operations like traversing, inserting and deleting. We have used Object Oriented Programming (OOP) concepts.

Ayush Sonare
Software Engineering

Unary and Binary Operations in C++

In this article, we have explored the different types of Unary and Binary Operations in C++ in depth. These includes common operators like increment (++) and decrement (--) along with all variants.

Disha Sharma
Software Engineering

Implementing Binary search in C++

We have explained in depth how to implement Binary Search in C++. We have covered 3 approaches: Recursive implementation, Iterative implementation and using STL functions.

Anuj Jhamb
Software Engineering

begin() and end() in Array C++ STL

In this article, we have explored begin() and end() functions in Array container of C++ STL in depth. We have covered the basic idea of iterators as well as both functions deal with iterators.

Rudrakshi Soni Rudrakshi Soni
Software Engineering

Different ways of Initializing multimap in C++

We have covered the different ways to initialize multimaps which includes inserting elements using make_pair, pair, initializer list, using another multimap, copy constructor and emplace_hint().

Harini Jeyaraman Harini Jeyaraman
Software Engineering

Sorting a 2 Dimensional (2D) vector in C++

In this article, we will explore different ways to sort a 2 dimensional (2D) vector in C++ which includes sorting by row, column, a specific row or a specific column.

Sahil Silare Sahil Silare
Software Engineering

Basics of std::multiset in C++

We have explored the basics of multiset container in C++ in depth. We have covered initialize, accessing elements, member functions, modifiers like emplace, its iterators, observers and much more.

Pravesh S. Jamgade
Software Engineering

Ways to convert double to string in C++

We have covered different ways to convert double to string in C++ which includes using std::to_string function, ostringstream, sprintf and boost's lexical_cast.

Rasika Kedia
Software Engineering

Vector::front() in C++ STL

We have covered front() function of vector container in C++ STL in depth along with differences between front(), begin(), back() and end() Functions.

Shivani Rajput Shivani Rajput
Software Engineering

Structures in C++

Structures in C++ are alternative to classes and is useful in designing a program better. It is in between array and classes. We have covered important points like difference between class and structure and need for structure.

Abhiram Reddy Duggempudi Abhiram Reddy Duggempudi
Software Engineering

size() in Stack C++ STL

We have explored size() function in Stack container in C++ STL in depth and explored its applications like checking the size of stack before pop operation and to get number of elements within the stack.

Shashank Bairy R
Software Engineering

Vector::size() in C++ STL

Vector::size() in C++ STL is used to get the size of a vector container that is the number of elements it has. We have compared it with empty() and capacity() functions as well which are related.

Riya Tyagi
Software Engineering

Different ways to delete elements from Stack container in C++ STL

Stack container in C++ STL uses Deque container internally. So, the pop() operation in stack actually calls pop_back() function in the internal deque container. We will explore ways to delete elements from a stack.

Deepak Tiwari
OpenGenus IQ © 2025 All rights reserved â„¢
Contact - Email: team@opengenus.org
Primary Address: JR Shinjuku Miraina Tower, Tokyo, Shinjuku 160-0022, JP
Office #2: Commercial Complex D4, Delhi, Delhi 110017, IN
Top Posts LinkedIn Twitter
Android App
Apply for Internship