We are committed to provide service 24 X 7

Deals, Shopping, Training, Tools

Tag: 5

5 Natural Supplements for Treating STIs in Nigeria.

General Health Blog 5 Natural Supplements for Treating STIs in Nigeria. sexual health One of the major issues with a lot of STIs in Nigeria is that they are becoming antibiotic-resistant which comes with serious complications. And people are looking for natural remedies or alternatives. Luckily, there are natural supplements that can provide solutions to …

5 Natural Supplements for Treating STIs in Nigeria.Read More

C++11 Smart Pointer – Part 5: shared_ptr, Binary trees and the problem of Cyclic References

bst

Main advantage of shared_ptr is that it automatically releases the associated memory when not used any more. But if we don’t use shared_ptr carefully then this advantage can turn into a disadvantage. Let’s look how, Advertisements Suppose I have to design a binary tree and in it the node contains a pointer to left and …

C++11 Smart Pointer – Part 5: shared_ptr, Binary trees and the problem of Cyclic ReferencesRead More

C++11 Multithreading – Part 5: Using mutex to fix Race Conditions

In this article we will discuss how to use mutex locks to protect shared data in multithreaded environment and avoid race conditions. To fix race conditions in multi-threaded environment we need mutex i.e. each thread needs to lock a mutex before modifying or reading the shared data and after modifying the data each thread should …

C++11 Multithreading – Part 5: Using mutex to fix Race ConditionsRead More

Designing a Multiton: Singleton that returns 5 objects in cycle

Let’s Design a Multiton class i.e. a modified Singleton to return 5 objects in cycle. Logic to Create Multiton Advertisements Instead of keeping a static pointer as member variable keep a vector of pointers as member variable. Now also keep track of how many times getInstance() function is called. To do that use static member …

Designing a Multiton: Singleton that returns 5 objects in cycleRead More

5 Different ways to Initialize a vector in c++

In this article we will discuss different ways to initialize a vector in C++. Creating a vector object without any initialization will create an empty vector with no elements i.e. Advertisements std::vector<int> vecOfInts; But we generally want to initialize a vector with huge values and calling push_back() that many times to add element in vector is not an …

5 Different ways to Initialize a vector in c++Read More

Cart

Your Cart is Empty

Back To Shop