Create two classes: RectangleThe Rectangle class should have two data fields-width and height of int types. The class should have display() method, to print the width and height of the rectangle separated by space. RectangleAreaThe RectangleArea class is derived from Rectangle class, […]
Maps-STL – C++
Maps are a part of the C++ STL.Maps are associative containers that store elements formed by a combination of a key value and a mapped […]
Sets-STL – C++
Basics Sets are a part of the C++ STL. Sets are containers that store unique elements following a specific order. Here are some of the […]
Lower Bound-STL – C++
The function returns an iterator for the least number that is bigger or equals to the target number.
Class – C++
Description Classes in C++ are user defined types declared with keyword class that has data and functions . Although classes and structures have the same […]
Struct – C++
Description struct is a way to combine multiple fields to represent a composite data structure, which further lays the foundation for Object Oriented Programming. For example, […]
StringStream – C++
Description stringstream is a stream class to operate on strings. It basically implements input/output operations on memory (string) based streams. stringstream can be helpful in different type of […]