Karthikeya Boyini has Published 2383 Articles

HTML DOM Input Number stepDown() Method

karthikeya Boyini

karthikeya Boyini

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

55 Views

The HTML DOM input number stepDown() method decrements the value of input number field by a specified value.SyntaxFollowing is the syntax −object.stepDown(number)Here, if number parameter is omitted then it decrements the value by 1.ExampleLet us see an example of input number stepDown() method − Live Demo HTML DOM stepUp()/stepDown() ... Read More

Implementation of a Falling Matrix in C++

karthikeya Boyini

karthikeya Boyini

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

436 Views

We have seen falling matrix scene in different films etc. Here we will see how to write a C++ program to do like that.To solve this problem, we have to care about these steps.Define width of the matrixTwo successive characters may or may not have same amount of gap between ... Read More

What is NaN in C++?

karthikeya Boyini

karthikeya Boyini

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

737 Views

The NaN is the abbreviation of Not a Number. It indicates undefined or non-representable floating point elements. One example of NaN is square root of some negative number, or result of 0/0.Example#include #include using namespace std; int main() {    cout >> "Square root of -5: " >> ... Read More

Using List as Stack and Queues in Python

karthikeya Boyini

karthikeya Boyini

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

5K+ Views

In this article, we will learn about Stack & Queue structures in Python 3.x. Or earlier. Here we will discuss the working and modification within these data structures −This includes −Insertion operation (Push, Enqueue)Deletion operation (Pop, Dequeue)Display / Traversing OperationPrerequisites: List & List OperationsRelated Data Structure: List ManipulationRelated ImagesStackIn stacks, ... Read More

Object Slicing in C++

karthikeya Boyini

karthikeya Boyini

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

376 Views

Object slicing is used to describe the situation when you assign an object of a derived class to an instance of a base class. This causes a loss of methods and member variables for the derived class object. This is termed as information being sliced away. For example, class Foo ... Read More

HTML DOM Select Object

karthikeya Boyini

karthikeya Boyini

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

197 Views

The HTML DOM select Object represent the element of an HTML document.Let’s see how to create select objectSyntaxFollowing is the syntax −document.createElement(“SELECT”);PropertiesFollowing are the properties of select Object −PropertyExplanationautofocusIt returns and modify whether the drop-down list should get focused or not when page load.disabledIt returns and modify whether the ... Read More

HTML DOM Select length Property

karthikeya Boyini

karthikeya Boyini

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

184 Views

The HTML DOM select length property returns the number of elements inside a drop-down list in an HTML document.SyntaxFollowing is the syntax −object.lengthExampleLet us see an example of HTML DOM select length property − Live Demo    html{       height:100%;    }    body{   ... Read More

Preventing Object Copy in C++

karthikeya Boyini

karthikeya Boyini

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

202 Views

In C++, when classes are created, we can copy it using some copy constructor or assignment operator. In this section we will see, how to prevent object copy of a class in C++. To prevent object copy, we can follow some rules. These are like below.1. Creating private copy constructor ... Read More

Using Iterations in Python Effectively

karthikeya Boyini

karthikeya Boyini

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

143 Views

In this article, we will learn about how to implement iterators and their effective implementation in Python 3.x. Or earlier. Let’ s take a look at various methods available in python which implements iterators.Type 1 − Implementation Of While Loop With Known LengthExample Code Live Demogenre = ("Python", "C", "C++", "Java") ... Read More

HTML DOM Select type Property

karthikeya Boyini

karthikeya Boyini

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

108 Views

The HTML DOM Select type property returns the value of the type attribute of drop-down list in an HTML document.SyntaxFollowing is the syntax −object.typeExampleLet us see an example of HTML DOM select type property − Live Demo    html{       height:100%;    }    body{   ... Read More

Advertisements