Tag: or
How to Naturally lose weight without exercise or workout
General Health Blog How to Naturally lose weight without exercise or workout Sure Way To Lose Weight Fast Weight loss at present has become the focus worldwide not only because of beautiful and attractive figure but also human health. The problem of obesity annoys different age groups from children to senile people. Maybe you are …
How to Naturally lose weight without exercise or workoutRead More
What’s good for a fresher : Development or Testing ?
If you are going to join a Software company as a fresher, then there might a question in your mind like, What’s good for my carrier – Testing Profile or Development Profile? Advertisements [showads ad=inside_post] The Answer is “It depends on what’s your interest and what you have planned for your future” like, Frequently Asked: …
What’s good for a fresher : Development or Testing ?Read More
Object Oriented Approach to Display a sequence of numbers without any For-Loop or Recursion
Suppose we have to display a sequence of numbers like from 10 to 20 i.e. 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 Advertisements without using any for-loop and recursion. Solution: Frequently Asked: Object Oriented Approach to Display a sequence of numbers without any For-Loop or Recursion We will use two concepts …
Object Oriented Approach to Display a sequence of numbers without any For-Loop or RecursionRead 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
How to iterate LinkedList in reverse or backward direction
In this article we will discuss how to iterate over a LinkedList in reverse order. Method 1 : Using Descending Iterator Iterator<E> descendingIterator() Descending Iterator returns the Iterator that points to the end of of List i.e. LinkedList<String> listOfStr = new LinkedList<>(); // Get Descending List Iterator from List Object Iterator<String> listItReverse = listOfStr.descendingIterator(); Now calling function …
How to iterate LinkedList in reverse or backward directionRead More
Initializing a HashSet from an Array or a Collection
In this Article we will discuss how to initialize a HashSet using a Array or a Collection. HashSet has a Constructor that receives a Collection as an argument and initializes the new Set with the elements of passed collection object. Advertisements public HashSet(Collection<? extends E> c) Initializing a HashSet with an array Suppose we need to …
Initializing a HashSet from an Array or a CollectionRead More
How to remove elements from a List based on value or External Criterion
In this article we will discuss how to remove an element from a List by matching a value or by matching some criterion. std::list provides two member functions for removing elements based on value i.e. std::list::remove and std::list::remove_if. Advertisements Using std::list::remove to remove element by value void remove (const value_type& val); It removes all the elements …
How to remove elements from a List based on value or External CriterionRead More
How to Add / Subtract Days, Months or Years from a Date in C++
In this article we will discuss how to add or subtract days, months & Years from a date object. Add / Subtract Days from a Date For example, if current date is 21 March 2016. Then subtracting 100 days from this date will make the date 12 Dec 2015 Advertisements For this we will use …
How to Add / Subtract Days, Months or Years from a Date in C++Read More
Convert a String to Uppercase or LowerCase in C++
In this article, we will discuss different ways to convert a string to upper case or lower case in C++. Table Of Contents Using STL using Boost String Algorithm Library Convert a String to Upper Case using STL C++ provides a function ::toupper() that converts a character to upper case character i.e. Advertisements int toupper ( …
C++ map : Erase element by key or Iterator or Range
In this article we will discuss the different ways to delete a key-value pair from map. std::map provides 3 overloaded version of erase() to remove elements from map i.e. Advertisements Erase by key Erase by Iterator Erase a range Lets discuss them one by one, Erase Element from Map by Key std::map provides a erase function that accepts …
C++ map : Erase element by key or Iterator or RangeRead More