Nitya Raut has Published 271 Articles

C++ Program to Implement Set in STL

Nitya Raut

Nitya Raut

Updated on 30-Jul-2019 22:30:25

459 Views

Set is abstract data type in which each element has to be unique, because the value of the element identifies it. The value of the element cannot be modified once it is added to the set, but it is possible to remove and add the modified value of that element.Functions ... Read More

C++ Program to Implement Set_Intersection in STL

Nitya Raut

Nitya Raut

Updated on 30-Jul-2019 22:30:25

469 Views

The intersection of two sets is formed only by the elements those are common in both sets. The elements copied by the function come always from the first set in the same order. The elements in the both the sets shall already be ordered.Common set operations are −Set UnionSet IntersectionSymmetric ... Read More

C++ Program to Implement Set_Symmetric_difference in STL

Nitya Raut

Nitya Raut

Updated on 30-Jul-2019 22:30:25

196 Views

This is a c++ program to implemet set_symmetric_difference. The symmetric difference of two sets is built by the elements that are present in one of the sets, but not in the other.Common set operations are −Set UnionSet IntersectionSymmetric Set Difference or Exclusive-ORSet Difference or SubtractionAlgorithmBegin    Declare set vector v ... Read More

How to convert a Date object in to Timestamp in JDBC program?

Nitya Raut

Nitya Raut

Updated on 30-Jul-2019 22:30:25

522 Views

The getTime() method of the java.sql.Date class retrieves and returns the time from the current timestamp in milliseconds (long) from epoch time 1, 1970 00:00:00.000 GMT.//Retrieving the date Date date = rs.getDate("Dispatch_Date");The constructor of the java.sql.Timestamp class accepts a long variable representing the time in milliseconds from the epoch time ... Read More

How to run continues thread in android?

Nitya Raut

Nitya Raut

Updated on 30-Jul-2019 22:30:25

467 Views

Before getting into an example, we should know what thread in android is. Threads are generic processing tasks that can do most things, but one thing they cannot do is update the UI.This example demonstrates about How to run continues thread in android.Step 1 − Create a new project in ... Read More

Print a character n times without using loop, recursion or goto in C++

Nitya Raut

Nitya Raut

Updated on 30-Jul-2019 22:30:25

932 Views

In this section we will see how to print a character n times without using loops and recursion in C++. We can solve this problem by using string class constructors. There is a constructor where we are taking the character that will be printed multiple times, and the number of ... Read More

reference_wrapper in C++

Nitya Raut

Nitya Raut

Updated on 30-Jul-2019 22:30:25

228 Views

In C++ the reference_wrapper is a class template that helps by wrapping a reference in a copy constructible and copy assignable object of type T. The instances of std::reference_wrapper are basically objects, but they can be converted into T&. So we can use as argument with the functions that take ... Read More

How to share intent from intentservice in android?

Nitya Raut

Nitya Raut

Updated on 30-Jul-2019 22:30:25

305 Views

Before getting into example, we should know what Intent service is in android. Intent Service is going to do back ground operation asynchronously. When user call startService() from activity , it doesn’t create instance for each request. It going to stop service after done some action in service class or ... Read More

How to add a new column to an existing table using JDBC API?

Nitya Raut

Nitya Raut

Updated on 30-Jul-2019 22:30:25

2K+ Views

You can add a new column to a table using the ALTER TABLE command.SyntaxALTER TABLE table_name ADD column_name datatype;Assume we have a table named Sales in the database with 5 columns namely ProductName, CustomerName, DispatchDate, DeliveryTime, Price and, Location as shown below:+-------------+--------------+--------------+--------------+-------+----------------+ | ProductName | CustomerName | DispatchDate | DeliveryTime ... Read More

Data Analysis and Visualization in Python?

Nitya Raut

Nitya Raut

Updated on 30-Jul-2019 22:30:25

1K+ Views

Python provides numerous libraries for data analysis and visualization mainly numpy, pandas, matplotlib, seaborn etc. In this section, we are going to discuss pandas library for data analysis and visualization which is an open source library built on top of numpy.It allows us to do fast analysis and data cleaning ... Read More

Advertisements