V Jyothi has Published 87 Articles

Friend class and function in C++

V Jyothi

V Jyothi

Updated on 11-Feb-2020 06:51:26

968 Views

A friend function of a class is defined outside that class' scope but it has the right to access all private and protected members of the class. Even though the prototypes for friend functions appear in the class definition, friends are not member functions.A friend can be a function, function ... Read More

Whitespace in C++

V Jyothi

V Jyothi

Updated on 11-Feb-2020 06:48:24

7K+ Views

Whitespace is a term that refers to characters that are used for formatting purposes. In C++, this refers primarily to spaces, tabs, and (sometimes) newlines. The C++ compiler generally ignores whitespace, with a few minor exceptions. For example, all the 4 lines below mean the same thing −cout

Logical Operators in C++

V Jyothi

V Jyothi

Updated on 10-Feb-2020 13:02:49

261 Views

The concept of logical operators is simple. They allow a program to make a decision based on multiple conditions. Each operand is considered a condition that can be evaluated to a true or false value. Then the value of the conditions is used to determine the overall value of the ... Read More

What are access modifiers in C++?

V Jyothi

V Jyothi

Updated on 10-Feb-2020 12:21:29

112 Views

Data hiding is one of the important features of Object Oriented Programming which allows preventing the functions of a program to access directly the internal representation of a class type. The access restriction to the class members is specified by the labeled access modifiers: public, private, and protected sections within ... Read More

Usage of text-align property in CSS

V Jyothi

V Jyothi

Updated on 31-Jan-2020 06:40:17

103 Views

The text-align property is used to align the text of a document. Possible values are left, right, center, justify.ExampleYou can try to run the following code to implement text-align property:                            This will be right aligned.                      This will be center aligned.                      This will be left aligned.          

Capitalize text with CSS

V Jyothi

V Jyothi

Updated on 31-Jan-2020 06:22:15

1K+ Views

To capitalize text with CSS, use the capitalize property. You can try to run the following code to capitalize text:                            India          

Remove a FileList item from a multiple “input:file” in HTML5

V Jyothi

V Jyothi

Updated on 30-Jan-2020 06:58:16

1K+ Views

When there is a situation where we need to remove items from DOM’s through JavaScript, we cannot do so directly from FileList object. We need to assign the following to an array:$('input:file#upload')[1].filesAfter that remove items from this array using splice or method of our choice and use that array.Another way ... Read More

How to detect point on canvas after canvas rotation in HTML5

V Jyothi

V Jyothi

Updated on 30-Jan-2020 06:15:29

189 Views

Whenever we work with canvas and want the canvas to be rotated, we need to translate point to draw point as per its rotation.A transform class can be made to detect point on the canvas after canvas rotationvar t = new Transform(); console.log(t.transformPoint(5, 6)); //Transform point will be [5, 6] ... Read More

Open a file browser with default directory in JavaScript and HTML?

V Jyothi

V Jyothi

Updated on 30-Jan-2020 06:10:44

882 Views

If you want to open a file browser in JavaScript and then want to set a default directory same as the file folder, then we cannot do it since windows do not allow you to do so, so it is not possible. For example:C: :\AmitThis is mainly due to security ... Read More

How to completely fill web page with HTML canvas?

V Jyothi

V Jyothi

Updated on 29-Jan-2020 10:51:22

221 Views

To make canvas fill the whole page, you need to be 100% in width and height of the page.* {    margin: 0;    padding: 0; } body, html {    height:100%; } #canvas {    position:absolute;    height:100%; width:100%; }

Advertisements