We are committed to provide service 24 X 7

Deals, Shopping, Training, Tools

Tag: using

High Blood Pressure: Natural Remedy Without Using Medication

heart Attack

General Health Blog High Blood Pressure: Natural Remedy Without Using Medication High Blood Pressure How To Treat and Cure High Blood Pressure Your Lifestyle plays an important role in treating your high blood pressure and hypertension. When you are able to successfully control your blood pressure with a healthy lifestyle, you might avoid, delay or …

High Blood Pressure: Natural Remedy Without Using MedicationRead More

Designing a Configurable Logging framework using Observer Design Pattern

logger

Almost in all applications we need logging functionality, but requirements varies from project to project. Here we have designing a Configurable Logging framework. First of all, lets have a look at full requirements. Functional Requirements: Advertisements It should provide, A configurable option for other application modules to save logs at more than one platform like, …

Designing a Configurable Logging framework using Observer Design PatternRead More

Task Grouping Using Composite Design Pattern

RunnableTask

Many times we need to perform certain tasks and also group them.   [showads ad=inside_post] Advertisements These tasks can be, Executing commands on console. Performing some SVN operation. Performing any thing specific to our project. Etc. Common things in all these tasks can be, Frequently Asked: Task Grouping Using Composite Design Pattern Every task need …

Task Grouping Using Composite Design PatternRead More

Using std::find & std::find_if with User Defined Classes

std::find and std::find_if algorithms are used to find first element in the given range. In this article we will see how to use std::find and std::find_if algorithm with user defined datatypes i.e. Classes & Structures. Advertisements Internally std::find algorithm uses the == operator for comparisons. For built-in data types like int, std::string etc operator == …

Using std::find & std::find_if with User Defined ClassesRead More

Design Sorting algorithm using Strategy Design Pattern

Algorithm with Strategy

What is a Strategy? Strategy is a plan of action designed to achieve a long-term or overall aim. Advertisements Behaviour of a class / Algorithm depends upon the strategy they use to covert Input to Output. Frequently Asked: Design Sorting algorithm using Strategy Design Pattern If Strategy is tightly bonded with the Algorithm/Class then variation …

Design Sorting algorithm using Strategy Design PatternRead 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

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

How virtual functions works internally using vTable and vPointer?

vPointer and vTable for MessageConverter class

In this article we will discuss that how virtual functions in C++ works internally using vTable and vPointer. If you are not clear on what is virtual function and in which scenarios we need them, then we suggest you to go through this article first, Advertisements https://ownyourlife.com.ng//when-should-i-use-virtual-functions-in-c/ virtual functions is based on run time binding. So, let’s …

How virtual functions works internally using vTable and vPointer?Read 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

Using STL to verify brackets or parentheses combination in an expression

In this we will see how to check if a given string take valid combination of open and close brackets i.e. (4+{8-[22+8]*}] contains valid order of open and close brackets. ({5+8]) contains invalid combination of open and close brackets. Advertisements [showads ad=inside_post] Bracket combinations to be used, Frequently Asked: Using STL to verify brackets or parentheses combination in an …

Using STL to verify brackets or parentheses combination in an expressionRead More

Cart

Your Cart is Empty

Back To Shop