Sravani S has Published 90 Articles

Relational Operators in C++

Sravani S

Sravani S

Updated on 10-Feb-2020 12:47:34

385 Views

In C++ Programming, the values stored in two variables can be compared using following operators and relation between them can be determined. These operators are called relational operators. Various C++ relational operators available are −OperatorDescription>Greater than>=Greater than or equal to==Is equal to!=Is not equal to

What would be effect of negative value of second argument, which specifies the number of decimal places, on the output of MySQL TRUNCATE() function?

Sravani S

Sravani S

Updated on 10-Feb-2020 10:39:10

226 Views

If we specify the negative value of the second argument then the digits before the decimal point would be deleted without rounded off. The number of digits to be deleted depends upon the value of the negative second argument. Following examples will demonstrate the change, depending upon the negative value of ... Read More

How to use sub-package in Java?

Sravani S

Sravani S

Updated on 04-Feb-2020 11:12:22

822 Views

Subpackages are similar to sub-directories. Consider an example. The company had a com.apple.computers package that contained a Dell.java source file, it would be contained in a series of subdirectories like this −....\com\apple\computers\Dell.javaAt the time of compilation, the compiler creates a different output file for each class, interface, and enumeration defined ... Read More

How can we import only specific columns from the text file, into MySQL table?

Sravani S

Sravani S

Updated on 04-Feb-2020 06:04:45

991 Views

Suppose if we have the values for some specific columns in the text file and MySQL table, in which we want to import the data, is having an extra column(s) then by mentioning the names of the columns in the query we can upload the values of those specific columns ... Read More

Set the font size with CSS

Sravani S

Sravani S

Updated on 30-Jan-2020 10:18:12

317 Views

The font-size property is used to increase or decrease the size of a font. The font-size property is used to control the size of fonts. Possible values could be xx-small, x-small, small, medium, large, x-large, xx-large, smaller, larger, size in pixels or in %.             ... Read More

Usage of background-color property in CSS

Sravani S

Sravani S

Updated on 30-Jan-2020 09:20:25

130 Views

The background-color property is used to set the background color of an element.ExampleYou can try to run the following code to learn how to work with the background-color property:                         This text has a blue background color.    

HTM5 checkValidity() method

Sravani S

Sravani S

Updated on 30-Jan-2020 07:08:40

249 Views

The HTML5 checkValidity() works in Google Chrome and Opera as well. This works as well:                    .valid { color: #0B7866; }          .invalid { color: #0B6877; }                 ... Read More

Draw a circle filled with random color squares on HTML5 canvas

Sravani S

Sravani S

Updated on 30-Jan-2020 06:59:59

984 Views

When we need to fill a circle with 1x1 pixels, all with different colors in a browser, we can use a simple approach like this: Drawing all pixels with some random colors in a 200x200 grid on a canvas Changing composite mode Drawing circle on topLet us seen an example:var canvas1 = document.getElementById('canvas'), ... Read More

Adding HTML5 Validation to Visual Studio

Sravani S

Sravani S

Updated on 29-Jan-2020 10:25:41

420 Views

For HTML5 validation, you need to install IntelliSense and validation support to Visual Studio. HTML5 is supported by Visual Studio 2012.VS 2010 had IntelliSense support, but VS 2012 added corresponding snippets making it fast and easy to write markup.Follow the steps: Launch Visual Studio 2012 Go to Tools > Options menu When Options ... Read More

Positioning HTML5 SVG in the center of screen

Sravani S

Sravani S

Updated on 29-Jan-2020 10:20:13

192 Views

To center SVG, add the following CSS:# svgelem {    margin-left:auto;    margin-right:auto;    display:block; }The following is our SVG:    

Advertisements