This program will ask user to input 10 names that will be array of strings and then user has to press a down arrow key or up arrow key to scroll down or upwards. If users presses a down arrow key then name will be scroll one by one on the screen. If...
Jun 13, 2007
Jun 12, 2007
C++ program to controle an object through keyboard
// C++ program to draw a circle on the screen and controlling it// through keyboard by direction keys.#include<iostream.h>#include<conio.h>#include<dos.h>#include<graphics.h>#include<stdlib.h>class snake{int x,y;int randx,randy;public...
Jun 7, 2007
C++ Program to Generate Series 1 11 111 1111............
#include<iostream.h>#include<conio.h>main(){clrscr();float k=1;float a=k;for (int i=1;i<=8;i++){cout << a <<endl;k = k*10;a=a+k;}getch(...
Series 1 11 111 1111............
#include<iostream.h>#include<conio.h>main(){clrscr();float k=1;for (int i=1;i<=8;i++){cout << k <<endl;k = k*10+1;}getch(...
C++ Program To Generate this Series: 1 10 100 1000 10000 100000
#include<iostream.h>#include<conio.h>main(){clrscr();float k=1;for (int i=1;i<=8;i++){cout << k <<endl;k = k*10;}getch(...
Jun 6, 2007
C++ program to draw and move a circle on the screen
// C++ program to draw and move a circle on the screen (up and down). when hit any key from the keyboard circle will stop moving and program ends if you don't press any key from the keyboard circle will move on the screen infinite times. Here in this...
Jun 5, 2007
C++ program
//C++ program that will take input an integer for the month and displays users season (Indian season) name according to the input#include<iostream.h>#include<conio.h>main(){clrscr();int m;cout <<"enter any months";cin >> m;if...
Jun 4, 2007
Multithreading in Java:
class mt implements Runnable{Thread t;mt() { t = new Thread(this, "Demo thread"); t.start(); }public void run() { try { for(int i=1;i<=10;i++) { System.out.println(i); t.sleep(1000); ...
Jun 3, 2007
JAVA PROGRAM TO DEMONSTRATE MARKSHEET CALCULATIONS
There are three functions in this program called add(), per() and Grade(). add() function will take marks as parameters and per() function will calculate percentage of given marks. while grade() will evaluate grade on the basis of percentage.class markproject{int...
Jun 2, 2007
HOW TO FORMAT NOKIA 6600
If you have been facing some problem in your NOKIA 6600 handset like hanging, slowing so you need to format the handset. Warning: All data will be lost in your mobile handset if you format the phone so take backup of your important data before doing...
Single Dimensional Array in JAVA:
// Array is a group of variables of same data types.class arrdemo{ public static void main(String[] args) { int marks[]; // array declaration that array would be of integer type marks =new int[5]; // new operator will allocates...
Jun 1, 2007
Inheritance in JAVA
//inheritance : class a is a superclass and class b is subclass. Class a is inherited class and class b that is inheriting.class a // superclass{ void add() { int a,b,c; a=10; b=20; c=a+b; System.out.println(c); }};// creating...
Subscribe to:
Posts (Atom)