×
Home Discussions Write at Opengenus IQ
×
  • Join our Internship 🎓
  • #7daysOfCode
  • C Interview questions
  • Linux 💽
  • 🔊 Data Structures
  • Graph Algorithms
  • Dynamic Programming 💑
  • Greedy Algo 📔
  • Algo Book 🧠
  • String Algo 🧬
  • Home

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

Basics of Unordered multiset in C++

An unordered multiset is an unordered set (a set in which a key can be stored in any random order) that allows different elements to have equivalent values (allows duplicate items).

Raghavendra Achar C
Software Engineering

C++ Likely and Unlikely attributes

C++ likely and unlikely attributes came into existence with the release of C++ 20. In our C++ code if we know which lines of code would most probably be executed during our code execution then we can use likely and unlikely attributes.

Hrithik Shrivastava
Software Engineering

Vector::pop_back() in C++

We have learnt about pop_back() method of Vector class included in std::vector library in C++. Vectors can be considered as dynamic arrays on the basis of its usage.

Harsh Khilawala
Software Engineering

Create and Delete Folder in C++

This article covers the process of creating and delete a directory (folder) in C++. We have provided the complete C++ implementation.

Renuka Ashok Jadhav
C++

std::variant in C++

std::variant was added in C++17 to support the sum type. It adds more functionality to union and hence is a safer version of it.

Rohit Topi
C++

Spaceship operator <=> in C++

The three-way comparison operator , colloquially called the spaceship operator was added in C++20. It is an alternative to basic_string compare() function in C++.

Rohit Topi
Software Engineering

Immediate Functions in C++

Immediate functions or the functions which have consteval keyword before their return type has been introduced with the release of C++ 20 , consteval functions are the functions that must be evaluated at compile time to produce a constant.

Hrithik Shrivastava
Software Engineering

Explicit in C++

Explicit is a keyword in C++ which was introduced with C++ 11 this is used to cast a data type and also to change the by default implicit conversion in C++.

Hrithik Shrivastava
Software Engineering

Digit Separators in C++

In this article, we have discussed about Digit Separators in C++. This topic is introduced in C++14. Using digit separators in the code make it easy for human readers to parse large numeric values.

Ketaki Gorakshanath Gangadhar
Software Engineering

Implementing rmdir using C/ C++

We have developed the rmdir command of UNIX systems in C and C++ by using the remove and nftw system functions to delete a directory.

Sahil Silare Sahil Silare
Software Engineering

Implementing mkdir in C/ C++

We have developed the mkdir command of UNIX systems in C and C++ by using the mkdir function to create a directory.

Sahil Silare Sahil Silare
Software Engineering

Implementing cd command in C/ C++

We have developed the cd command of UNIX systems in C and C++ by using the chdir function.

Sahil Silare Sahil Silare
Software Engineering

nullptr (null pointer) in C++

A null pointer (nullptr) is a pointer that does not point to any memory location. nullptr is a keyword that was introduced in C++11 standard to denote a null pointer. This standard also introduced a nullptr_t type.

Rohit Topi
Software Engineering

Different ways to initialize 2D array in C++

We have explored different types to initialize 2D array in C++ like Sized array, Skipping values and Unsized array initialization.

Srishti Guleria Srishti Guleria
Software Engineering

Implementing pwd command in C/C++

We will use the header file dirent.h for directory structures and objects and implement our pwd command in C/C++. This will involve the getcwd() function call.

Sahil Silare Sahil Silare
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
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
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
×

Visit our discussion forum to ask any question and join our community

View Forum
OpenGenus IQ © 2021 All rights reserved â„¢ [email: team@opengenus.org]
Top Posts LinkedIn Twitter