George John has Published 1167 Articles

C++ Program to Perform Inorder Recursive Traversal of a Given Binary Tree

George John

George John

Updated on 24-Jun-2020 09:48:29

13K+ Views

Tree traversal is a form of graph traversal. It involves checking or printing each node in the tree exactly once. The inorder traversal of a binary search tree involves visiting each of the nodes in the tree in the order (Left, Root, Right).An example of Inorder traversal of a binary ... Read More

C++ Program to Find the Frequency of a Character in a String

George John

George John

Updated on 24-Jun-2020 09:43:27

15K+ Views

A string is a one-dimensional character array that is terminated by a null character. Frequency of characters in a string is the number of times they occur in a string. For example −String: Football is a sport The frequency of alphabet o in the above string is 3A program to ... Read More

Usage of CSS grid-row-gap property

George John

George John

Updated on 24-Jun-2020 08:27:22

81 Views

Set gap between Grid rows with CSS. You can try to run the following code to implement the grid-row-gap property.ExampleLive Demo                    .container {             display: grid;             background-color: green; ... Read More

Change the font size of a button with CSS

George John

George John

Updated on 24-Jun-2020 08:09:10

20K+ Views

To change the font size of a button, use the font-size property.You can try to run the following code to change the font sizeExampleLive Demo                    .button {             background-color: yellow;             color: black;             text-align: center;             font-size: 15px;          }                     Result       Click below for result:       Result    

Create red neon glow shadow using CSS

George John

George John

Updated on 24-Jun-2020 07:18:37

346 Views

To create red neon glow shadow, use the text-shadow property. You can try to run the following code to achieve thisExampleLive Demo                    h1 {             text-shadow: 0 0 4px #FF0000;          }                     Heading One       Above heading has a read neon glow shadow effect.    

Selects all elements inside

George John

George John

Updated on 24-Jun-2020 07:08:44

3K+ Views

Use the element element selector to select all elements inside another element.You can try to run the following code to implement element element selector,ExampleLive Demo                    div p {             color: white;             background-color: blue;          }                     Demo Website       Fruits       Fruits are good for health.                This is demo text.          

Arrow to the left of the tooltip with CSS

George John

George John

Updated on 24-Jun-2020 07:03:37

858 Views

Use the right CSS property to add arrow to the right of the tooltip.You can try to run the following code to add a tooltip with arrow to the leftExampleLive Demo           .mytooltip .mytext {          visibility: hidden;          width: ... Read More

Set right tooltip with CSS

George John

George John

Updated on 24-Jun-2020 06:54:59

111 Views

To set right tooltip, use the left CSS property.You can try to run the following code to set right tooltip to a textExampleLive Demo           .mytooltip .mytext {          visibility: hidden;          width: 140px;          background-color: blue; ... Read More

Specify the speed curve of the animation with CSS

George John

George John

Updated on 24-Jun-2020 06:51:50

255 Views

Use the animation-timing-function to set the speed curve of the Animation. You can try to run the following code to achieve thisExampleLive Demo                    div {             width: 150px;             height: ... Read More

Read whole ASCII file into C++ std::string

George John

George John

Updated on 24-Jun-2020 06:32:57

13K+ Views

This is a simple way to read whole ASCII file into std::string in C++ −AlgorithmBegin    Declare a file a.txt using file object f of ifstream type to perform read operation.    Declare a variable str of string type.    If(f)       Declare another variable ss of ostringstream ... Read More

Advertisements