Perform Animation on CSS Border Bottom Color Property

Samual Sam
Updated on 25-Jun-2020 09:35:50

133 Views

To implement animation on the border-bottom-color property with CSS, you can try to run the following code ExampleLive Demo    div {       width: 500px;       height: 400px;       background: yellow;       border: 10px solid yellow;       background-image: url('https://www.tutorialspoint.com/latest/microservice_architecture.png');       animation: myanim 3s infinite;       background-position: bottom left;       background-size: 50px;    }    @keyframes myanim {       20% {          background-color: maroon;          background-position: bottom right;          background-size: 90px;          border-bottom-color: green;       }    } Performing Animation for bottom border color

isspace Function in C++

Arjun Thakur
Updated on 25-Jun-2020 09:31:06

4K+ Views

The isspace() function is a predefined function in ctype.h. It specifies whether the argument is a whitespace character or not. Some of the whitespace characters are space, horizontal tab, vertical tab etc.A program that implements isspace() function by counting the number of spaces in a string is given as follows −Example Live Demo#include #include using namespace std; int main() {    char str[] = "Coding is fun";    int i, count = 0;    for(i=0; str[i]!='\0';i++) {       if(isspace(str[i]))       count++;    }    cout

Animate CSS Border Top Property

Lakshmi Srinivas
Updated on 25-Jun-2020 09:30:08

250 Views

To implement animation on the border-top property with CSS, you can try to run the following codeExampleLive Demo                    table,th,td {             border: 1px solid black;          }          #newTable {             width: 500px;             height: 300px;             background: yellow;             border: 15px solid yellow;             animation: myanim 3s infinite;             background-position: bottom left;             background-size: 50px;          }          @keyframes myanim {             30% {                background-color: orange;                border-right-color: red;                border-right-width: 25px;                border-spacing: 50px;                border-top: 125px solid red;             }          }                     Performing Animation for top border                             Subject             Student             Marks                                 Maths             Amit             98                                 Science             Sachin             99                    

Static Data Members in C++

Ankith Reddy
Updated on 25-Jun-2020 09:29:34

24K+ Views

Static data members are class members that are declared using the static keyword. There is only one copy of the static data member in the class, even if there are many class objects. This is because all the objects share the static data member. The static data member is always initialized to zero when the first class object is created.The syntax of the static data members is given as follows −static data_type data_member_name;In the above syntax, static keyword is used. The data_type is the C++ data type such as int, float etc. The data_member_name is the name provided to the ... Read More

Swap Numbers in Cyclic Order Using Call by Reference in C++

George John
Updated on 25-Jun-2020 09:26:39

1K+ Views

Three numbers can be swapped in cyclic order by passing them to a function cyclicSwapping() using call by reference. This function swaps the numbers in a cyclic fashion.The program to swap numbers in cyclic order using call by reference is given as follows −Example Live Demo#include using namespace std; void cyclicSwapping(int *x, int *y, int *z) {    int temp;    temp = *y;    *y = *x;    *x = *z;    *z = temp; } int main() {    int x, y, z;    cout > y >> z;    cout

Usage of Radial Gradient CSS Function

George John
Updated on 25-Jun-2020 09:26:23

107 Views

Set a radial gradient as the background image, with radial-gradient() CSS function. You can try to run the following code to implement linear-gradient() function in CSSExampleLive Demo                    #demo {             height: 200px;             background: radial-gradient(green, orange, maroon);          }                     Setting background as radial gradient.          

Control Letter Spacing in CSS

Chandu yadav
Updated on 25-Jun-2020 09:25:34

130 Views

Use the font-kerning property to control how letters placed on a web page. You can try to run the following code to implement the font-kerning propertyExampleLive Demo                    #demo {             font-kerning: normal;          }                     This is demo text.    

iscntrl Function in C++

Arjun Thakur
Updated on 25-Jun-2020 09:22:26

158 Views

The iscntrl() function in C++ checks if a character is a control character or not. This function is defined in ctype.h.The syntax for iscntrl() function is given as follows −int iscntrl ( int ch );Here, ch is the character that needs to be checked.A program that demonstrates iscntrl() function by counting the number of control characters in a string is given as follows −Example Live Demo#include #include using namespace std; int main() {    char str[] = "Coding\tis\tfun";    int i, count = 0;    for(i=0; str[i]!='\0';i++) {       if(iscntrl(str[i]))       count++;    }    cout

C++ Program to Implement Circular Queue

Arjun Thakur
Updated on 25-Jun-2020 09:19:29

31K+ Views

A queue is an abstract data structure that contains a collection of elements. Queue implements the FIFO mechanism i.e the element that is inserted first is also deleted first.A circular queue is a type of queue in which the last position is connected to the first position to make a circle.A program to implement circular queue in C++ is given as follows −Example#include using namespace std; int cqueue[5]; int front = -1, rear = -1, n=5; void insertCQ(int val) {    if ((front == 0 && rear == n-1) || (front == rear+1)) {       cout

Getchar Unlocked in C

George John
Updated on 25-Jun-2020 09:16:19

453 Views

The function getchar_unlocked() is deprecated in Windows because it is a thread unsafe version of getchar(). It is suggested not to use getchar_unlocked(). There is no stream lock check that’s why getchar_unlocked is unsafe. The function getchar_unlocked() is faster than getchar().Here is the syntax of getchar_unlocked() in C language, int getchar_unlocked(void);A program of getchar_unlocked() in C is as follows −Example Live Demo#include int main() {    char val;    val = getchar_unlocked();    printf("Enter the character : ");    printf("Entered character : %c", val);    return 0; }OutputHere is the outputEnter the character : a Entered character : aRead More

Advertisements