We are committed to provide service 24 X 7

Deals, Shopping, Training, Tools

Tag: C

Hepatitis Treatment: All You Need To Know about Type A, B, C, & D

Hepatitis Treatment

General Health Blog Hepatitis Treatment: All You Need To Know about Type A, B, C, & D hepatitis HEPATITIS REMEDY: All you Need To know and the Treatment What is Hepatitis? Hepatitis treatment is a liver disease caused by the hepatitis virus which could be easily contracted from a victim through contact of body fluids. …

Hepatitis Treatment: All You Need To Know about Type A, B, C, & DRead More

C++ : How to split a string using String and character as Delimiter?

In this article we will see 2 techniques to split a std::string in C++ and return the result in std::vector<std::string> i.e. Splitting a std::string using a char as delimiter. Splitting a std::string using an another std::string as delimiter. How to Split a std::string using a char as delimiter: In this we will convert the passed …

C++ : How to split a string using String and character as Delimiter?Read More

When to use virtual functions in C++?

When we want a Derived Class to override a member function of Base class, then we should make that member function in Base class virtual. So that if someone uses the Derived class object using Base class’s pointer or reference to call the overridden member function, then function of derived class should be called. Suppose draw() is …

When to use virtual functions in C++?Read More

C++ : Map Tutorial Part 3: Using User defined class objects as keys in std::map

In this article we will discuss how to use User defined classes as key in std::map. By default std::map uses “operator <” as sorting criteria for keys. For default data types like int and std::string etc, operator < is available by default but for User defined classes operator < is not available by default. Advertisements …

C++ : Map Tutorial Part 3: Using User defined class objects as keys in std::mapRead More

C++ : Map Tutorial -Part 2: Map and External Sorting Criteria / Comparator

In this article we will discuss how to use external sorting criteria for keys in std::map and points that we need to take care with external sorting criteria. Default sorting criteria for keys in std::map is operator “<” i.e. std::less<T>. So, while creating std::map if we don’t specify the external sorting criteria then default criteria …

C++ : Map Tutorial -Part 2: Map and External Sorting Criteria / ComparatorRead More

C++ Set example and Tutorial – Part 1

In this article we will discuss how to use std::set with default sorting criteria. std::set – Introduction std::set is an associative container and header that need to be include for it is,#include<set> Advertisements Benefits and Features of std::set: It’s doesn’t allow duplicate elements i.e. it only contains unique elements. Std::set can contain element of any …

C++ Set example and Tutorial – Part 1Read More

Allocating and deallocating 2D arrays dynamically in C and C++

In this article we will see how to allocate and deallocate 2D arrays dynamically using new / delete and malloc / free combinations. Suppose we want to create a 2D array using pointers on heap either using new or malloc. It should function like this, Advertisements int row = 2; int col = 3; int ** …

Allocating and deallocating 2D arrays dynamically in C and C++Read More

C++ std::set example and tutorial with user defined classes

In this article we will see how to use std::set with user defined classes. If you want to use std::set with user defined classes and use default sorting criteria then overload operator < in the class. Advertisements For example, Suppose our class is Message that contains three properties i.e. • Member content • Sending User …

C++ std::set example and tutorial with user defined classesRead More

c++ std::set example and tutorial with external Sorting criteria | Comparator

In this article we will see how to use external Sorting Criteria i.e. Comparator in std::set. Suppose our class is Message that contains three properties i.e. • Member content • Sending User Name • Receiving User Name Advertisements Requirement: we want to keep only single message sent by each user i.e. only one sent message …

c++ std::set example and tutorial with external Sorting criteria | ComparatorRead More

Cart

Your Cart is Empty

Back To Shop