Smita Kapse has Published 558 Articles

How to find highest value in Android sqlite?

Smita Kapse

Smita Kapse

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

339 Views

Before getting into example, we should know what sqlite data base in android is. SQLite is an open source SQL database that stores data to a text file on a device. Android comes in with built in SQLite database implementation. SQLite supports all the relational database features. In order to ... Read More

How to remove data from hashmap to arraylist for listview in Android?

Smita Kapse

Smita Kapse

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

130 Views

This example demonstrate about How to remove data from hashmap to arraylist for listview in AndroidStep 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml. ... Read More

How to get current country name from Network provider in android?

Smita Kapse

Smita Kapse

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

126 Views

This example demonstrate about How to get current country name from Network provider in android.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.   ... Read More

What is a type cast in C/C++?

Smita Kapse

Smita Kapse

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

238 Views

Type casting is a way to convert a variable from one data type to another data type. For example, if you want to store a 'long' value into a simple integer then you can type cast 'long' to 'int'. You can convert the values from one type to another explicitly ... Read More

Difference between Structures in C and C++

Smita Kapse

Smita Kapse

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

364 Views

Here we will see what are the differences between structures in C and structures in C++. The C++ structures are mostly like classes in C++. In C structure, all members are public, but in C++, they are private in default. Some other differences are listed below.C StructureC++ StructureStructures in C, ... Read More

Signal Handling in C++

Smita Kapse

Smita Kapse

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

419 Views

Signals are the interrupts delivered to a process by the operating system which can terminate a program prematurely. You can generate interrupts by pressing Ctrl+C on a UNIX, LINUX, Mac OS X or Windows system.There are signals which cannot be caught by the program but there is a following list ... Read More

fmax() and fmin() in C++

Smita Kapse

Smita Kapse

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

448 Views

In this section we will see how to convert fmax() and fmin() in C++. The fmax() and fmin() are present in the cmath header file.This function takes two values of type float, or double or long double and returns maximum or minimum using fmax() and fmin() respectively.If the argument types ... Read More

How to get particular id records using regexp in Android sqlite?

Smita Kapse

Smita Kapse

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

494 Views

Before getting into example, we should know what sqlite data base in android is. SQLite is an open source SQL database that stores data to a text file on a device. Android comes in with built in SQLite database implementation. SQLite supports all the relational database features. In order to ... Read More

Using return value of cin to take unknown number of inputs in C++

Smita Kapse

Smita Kapse

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

1K+ Views

Sometimes we need variable number of inputs in our program. In this program we will see how to use cin to take variable number of inputs.The simple solution is run a loop, and when one specific value is pressed, it stops. The another idea is using the cin >> input. ... Read More

How to convert an enum type variable to a string in C++?

Smita Kapse

Smita Kapse

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

409 Views

Here we will see how to convert some enum type data to a string in C++. There is no such direct function to do so. But we can create our own function to convert enum to string.We shall create a function that takes an enum value as an argument, and ... Read More

Advertisements