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.
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.
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.
“ 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.
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.
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.
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.
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.
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.
Split the string means we separate the string .In this example we remove comma separator and separate the string.