We are committed to provide service 24 X 7

Deals, Shopping, Training, Tools

Tag: Line

C++ : How to Initialize a map in one line using initialzer_list ?

In this article we will discuss how to initialize a map with std::initialzer_list<T>. Let’s create a map of string as key and int as value and initialize it with initializer_list i.e. Advertisements // Initialize a Map of string & int using initializer_list std::map<std::string, int> mapOfMarks = { {“Riti”,2}, {“Jack”,4} }; Here compiler will create following …

C++ : How to Initialize a map in one line using initialzer_list ?Read More

Python: Search strings in a file and get line numbers of lines containing the string

In this article, we are going to discuss, how to search for single or multiple strings in a file and get all the matched lines along with their line numbers. Check if a string exists in a file To check if a given string exists in the file or not, we have created a function, …

Python: Search strings in a file and get line numbers of lines containing the stringRead More

Matplotlib – Line Plot explained with examples

Matplot line plot example 1

In Python, the pyplot library of the Matplotlib module helps in achieving data visualization through easy ways. We can create different graphs, but in this article, we will be discussing the Line graph. We will be using the ‘plot’ method to view our data in a graphical representation. pyplot.plot() syntax Let us look at the …

Matplotlib – Line Plot explained with examplesRead More

Cart

Your Cart is Empty

Back To Shop