Draw a line in C++

Graphics is one of the main feature of c++. By using Graphics we can draw any shape.#include<graphics.h> header files defines a number of graphics function like

Point…….simply a pair(x,y)representing a coordinate in the window

Circle…….defines by a point and a radius

Line………Two points one is starting point and other is the end point

Message…..Used to display in the graphics window.

Program to accept three strings and arrange them in order of their length

We can enter three strings from the keyboard and arrange them in the order of their lengths.

readLine() is used to enter the string from keyboard(run time) and length() is used to determine

the length of the String.It returns the number of characters in the String.

Program to find Date and Time in Java

Date function is used to find the current date and time of the system.We use util package to use date method.java.util package provides language utility classes like Vectors,date etc.

Comparing two String in Java

“ String means Group of characters(single word like’s’) ”.If you want to compare two strings then ==(double equals) operator(s1==s2) is used. For comparing two strings equals methods(equals()) of string class is used.

Binary Operator Overloading in C++

Operator Overloading means overloading an operator.We can write function as normal but Function name is keyword(reserved keyword) "operator" with symbol(operator+).We can used this to overload the addition operator.

Pure Virtual Function

When we use same function name in both base class(parents class, super clas) and derived class
(child class, sub class), the function in base class is declared as virtual using the keyword virtual.
A virtual function, equated to zero(function name()=0) is called a pure virtual function.

Program to show how a method returns values

The return is a keyword in Java.In the program return statement is used with the methods which return a value. This is the main point to be noted that a function can return only one value.

Program of Labeled Continue Statement

The labeled continue(continue statement can be followed by a label) statement skips the current iteration of an outer loop marked with the given Label and Loops make the program code shorter, Nested Loops are used for calculations in matrics and arrays.

Find out the factorial of a given number with different loop

It is very interesting to note that the program with one type of loop can be converted to other program With while, do-while,for loop to produce the same result.

How we split the string in Java

 Split the string means we separate the string .In this example we remove comma separator and separate the string.

Page 25 of 29

About Us

Rekha SetiaRekha Setia is a passionate blogger of Extra Computer Notes. if you have any ideas or any request me @