Ankith Reddy has Published 1132 Articles

C++ equivalent of instanceof

Ankith Reddy

Ankith Reddy

Updated on 16-Feb-2022 07:41:26

13K+ Views

C++ has no direct method to check one object is an instance of some class type or not. In Java, we can get this kind of facility.In C++11, we can find one item called is_base_of. This will check if the given class is a base of the given object or ... Read More

Reset all properties with CSS

Ankith Reddy

Ankith Reddy

Updated on 06-Jul-2020 11:28:34

524 Views

Use the all property to reset all the properties. Set all property to initial, inherit or unset.ExampleYou can try to run the following code to implement the CSS all propertyLive Demo                    html {             color: blue;          }          #demo {             background-color: yellow;             color: red;             all: inherit;          }                     CSS all property       This is demo text.    

Build Horizontal Navigation Bar with Floating List Items in CSS

Ankith Reddy

Ankith Reddy

Updated on 01-Jul-2020 11:05:06

741 Views

To create a horizontal navigation bar, use the floating list item.ExampleYou can try to run the following code to create a horizontal navigation barLive Demo                    ul {             list-style-type: none;             margin: 0;             padding: 0;          }          li {             float: left;          }          li a {             display: block;             padding: 8px;             background-color: orange;          }                              Home          News          Contact          About          

Create a transparent box with CSS

Ankith Reddy

Ankith Reddy

Updated on 01-Jul-2020 10:51:39

570 Views

To create a transparent box with CSS, you can try to run the following codeExampleLive Demo                    div {             background-color: #808000;             padding: 20px;          }          div.myopacity {             opacity: 0.4;             filter: alpha(opacity=80);          }                     Heading       Check trensparency in the below box:                opacity 0.4                      opacity 1          

Style the document's root element with CSS

Ankith Reddy

Ankith Reddy

Updated on 01-Jul-2020 09:18:45

105 Views

To style document’s root element, use the CSS: root selector.ExampleYou can try to run the following code to implement the: root SelectorLive Demo                    :root {             background: blue;             color: white;          }                     Heading       This is demo text.    

Style element with no "readonly" attribute with CSS

Ankith Reddy

Ankith Reddy

Updated on 01-Jul-2020 09:16:36

284 Views

Use the CSS: read-write selector to select elements with no "readonly" attribute.ExampleYou can try to run the following code to implement the: read-write selectorLive Demo                    input:read-write {             background-color: blue;             color: white;          }                              Subject:          Student:          

Role of CSS :only-of-type Selector

Ankith Reddy

Ankith Reddy

Updated on 01-Jul-2020 08:58:41

64 Views

Use the CSS :only-of-type selector to style every element that is the only element of its parent.ExampleYou can try to run the following code to implement the :only-of-type selectorLive Demo                    p:only-of-type {           ... Read More

8085 Program for subtraction of multi-Byte BCD numbers

Ankith Reddy

Ankith Reddy

Updated on 30-Jun-2020 13:22:44

352 Views

Now let us see a program of Intel 8085 Microprocessor. In this program we will see how to subtract multi-Byte BCD numbers.Problem StatementWrite 8085 Assembly language program to subtract two multi-Byte BCD numbers.DiscussionThe numbers are stored into memory, and one additional information is stored. It will show us the Byte ... Read More

How to open MySQL command line on Windows10?

Ankith Reddy

Ankith Reddy

Updated on 30-Jun-2020 12:38:34

20K+ Views

To open the MySQL command line from cmd, you need to use username root with your password.Follow the below given steps. The syntax is as follows −cd \> press enter key cd Program Files\MySQL\MySQL Server 8.0\bin> press enter key C:\Program Files\MySQL\MySQL Server 8.0\bin>mysql -uroot -p press enter key Enter password: ... Read More

gmp_and() function in PHP

Ankith Reddy

Ankith Reddy

Updated on 30-Jun-2020 11:37:01

25 Views

The gmp_and() function computes the bitwise AND of two GMP numbers.Syntaxgmp_and($n1, $n2)Parametersn1 − The first GMP number. It can be GMP object in PHP version 5.6 and later. Can also be numeric strings.n2 − The second GMP number. It can be GMP object in PHP version 5.6 and later. Can ... Read More

Advertisements