Monday, September 15, 2008

India map program

include"stdio.h"
main()
{
int a,b,c;
int count = 1;
for (b=c=10;a="- LLLLLL?, LMKC,XYZHELLO FOLKS,\TFy!QJu ROo TNn(ROo)SLq SLq ULo+\UHs UJq TNn*RPn/QPbEWS_JSWQAIJO^\NBELPeHBFHT}TnALVlBLOFAkHFOuFETp\HCStHAUFAgcEAelclcn^r^r\\tZvYxXy\TS~Pn SPm SOn TNn ULo0ULo#ULo-W\Hq!WFs XDt!" [b+++21];)
for(; a-- > 64 ; )putchar ( ++c=='Z' ? c = c/ 9:33^b&1)
}

Tajmahal program

#include"graphics.h"
#include"conio.h"
#include"dos.h"
#include"stdlib.h"
#include"process.h"
main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"c:\tc\bgi");
int h=40;line(0,440,639,440);
//line(20,30+h,619,30+h);
//line(25,400,38,120);
//line(85,400,78,120);
//line(85,400,78,120);
//=================================Ist tower========================////=================================IIst//tower============================////#################TOWER%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%//
int l=-20;line(28+l,400+h,33+l,333+h);
line(86+l,400+h,80+l,333+h);
//Ist//stage//line(23+l,328+h,32+l,334+h);
// slant line(88+l,328+h,80+l,334+h);
// slantline(83+l,323+h,75+l,334+h);
// slantline(75+l,323+h,70+l,332+h);
line(66+l,323+h,65+l,332+h);
// slant line(57+l,323+h,57+l,332+h); // slantline(30+l,323+h,39+l,334+h);
// slantline(38+l,323+h,45+l,332+h);
line(48+l,323+h,51+l,332+h);
// slantellipse(57+l,320+h,350,190,34,5);
ellipse(57+l,327+h,350,190,34,5);
ellipse(57+l,337+h,0,180,25,5);
line(22+l,320+h,22+l,328+h);
line(91+l,320+h,91+l,327+h);
setfillstyle(6,15);
floodfill(60+l,320+h,15);
setfillstyle(10,15);
floodfill(60+l,320+h+15,15);
////////+++++++++++++++++++++++++++++++++++2nd+++++++++++++++++++++++++++line(35+l,315+h,38+l,242+h);
line(80+l,315+h,75+l,242+h);
//2st//stage//int t=-93;line(23+4+l,328+t+3+h,32+5+l,334+t+h);
// slantline(88+l,328+t+2+h,76+l,334+t+h);
// slant //line(+l83,323+t+4,75,334+t);
// slantline(78+l,323+t+3+h,71+l,332+t+h);
line(66+l,323+t+2+h,65+l,332+t+h);
// slantline(57+l,323+t+2+h,57+l,332+t-2+h);
// slant //line(30,323+t+2,39,334+t);
// slantline(35+l,323+t+3+h,45-3+l,332+t+h);
line(48+l,323+t+2+h,51+l,332+t-2+h);
// slantellipse(57+l,320+t+3+h,360,190,30,5);
ellipse(57+l,327+t+3+h,360,190,30,5);
ellipse(57+l,337+t-1+h,0,180,18,5);
line(26+l,320+t+3+h,26+l,328+t+2+h);
line(88+l,320+t+3+h,88+l,327+t+3+h);
//////setfillstyle(6,15);
floodfill(60+l,320+h+t,15);
//////////////// setfillstyle(10,15);
floodfill(60+l,320+h-35,15);//3rd//stage//line(38+l,225+h,41+l,152+h);
line(75+l,225+h,72+l,152+h);
t=-182;
line(32+l,328+t+4+h,32+7+l,334+t+h);
// slantline(80+l,328+t+4+h,73+l,334+t+h);
// slant//line(+l83,323+t+4,75,334+t);
// slantline(76+l,323+t+5+h,71+l,332+t+h);
line(66+l,323+t+4+h,65+l,332+t+h);
// slantline(57+l,323+t+4+h,57+l,332+t-2+h);
// slant//line(30,323+t+2,39,334+t);
// slantline(39+l,323+t+6+h,45+l,332+t+1+h);
line(48+l,323+t+4+h,51+l,332+t+h);
// slantellipse(57+l,320+t+6+h,360,190,24,5);
ellipse(57+l,327+t+4+h,360,190,24,5);
ellipse(57+l,337+t-1+h,0,170,16,5);
line(32+l,320+t+6+h,32+l,328+t+3+h);
line(81+l,320+t+6+h,81+l,327+t+3+h);
setfillstyle(6,15);
floodfill(60+l,322+h+t,15);
//////setfillstyle(10,15);
floodfill(60+l,322+h+t+30,15);
//GGF################TOWER%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%//
ellipse(51+l,132+h,340,216,4,15);
ellipse(62+l,131+h,327,216,4,15);
ellipse(72+l,132+h,327,216,2,15);
ellipse(42+l,132+h,327,216,2,15);
ellipse(57+l,107+h,0,170,16,5);
line(40+l,107+h,40+l,140+h);
line(75+l,107+h,75+l,140+h);
line(34+l,107+h,40+l,107+h);
line(75+l,107+h,81+l,107+h);
line(34+l,107+h,28+l,102+h);
//slantline(81+l,107+h,87+l,102+h);
line(28+l,102+h,34+l,98+h);
line(87+l,102+h,81+l,98+h);
line(34+l,98+h,58+l,95+h);
line(58+l,95+h,81+l,98+h);
ellipse(65+l,92+h,104,190,30,30);
ellipse(50+l,92+h,350,76,30,30);
line(58+l,61+h,58+l,63+h);
circle(58+l,58+h,3);
line(58+l,55+h,58+l,53+h);
circle(58+l,50+h,2);
line(58+l,48+h,58+l,47+h);
circle(58+l,45+h,1);
line(58+l,44+h,58+l,41+h);
setfillstyle(6,15);
floodfill(60+l-2,322+h+t-60,15);
setfillstyle(10,15);
floodfill(60+l-2,322+h+t-30,15);
//=================================IIst//tower============================////#################TOWER%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%// l=547;
line(28+l,400+h,33+l,333+h);
line(86+l,400+h,80+l,333+h);
//Ist//stage//line(23+l,328+h,32+l,334+h);
// slantline(88+l,328+h,80+l,334+h);
// slantline(83+l,323+h,75+l,334+h);
// slantline(75+l,323+h,70+l,332+h);
line(66+l,323+h,65+l,332+h);
// slantline(57+l,323+h,57+l,332+h);
// slantline(30+l,323+h,39+l,334+h);
// slantline(38+l,323+h,45+l,332+h);
line(48+l,323+h,51+l,332+h);
// slantellipse(57+l,320+h,350,190,34,5);
ellipse(57+l,327+h,350,190,34,5);
ellipse(57+l,337+h,0,180,25,5);
line(22+l,320+h,22+l,328+h);
line(91+l,320+h,91+l,327+h);
setfillstyle(6,15);
floodfill(60+l,320+h,15);
setfillstyle(10,15);
floodfill(60+l,320+h+15,15);
////////+++++++++++++++++++++++++++++++++++2nd+++++++++++++++++++++++++++line(35+l,315+h,38+l,242+h);
line(80+l,315+h,75+l,242+h);
//2st//stage//t=-93;
line(23+4+l,328+t+3+h,32+5+l,334+t+h);
// slantline(88+l,328+t+2+h,76+l,334+t+h);
// slant //line(+l83,323+t+4,75,334+t);
// slantline(78+l,323+t+3+h,71+l,332+t+h);
line(66+l,323+t+2+h,65+l,332+t+h);
// slantline(57+l,323+t+2+h,57+l,332+t-2+h);
// slant //line(30,323+t+2,39,334+t);
// slantline(35+l,323+t+3+h,45-3+l,332+t+h);
line(48+l,323+t+2+h,51+l,332+t-2+h);
// slantellipse(57+l,320+t+3+h,360,190,30,5);
ellipse(57+l,327+t+3+h,360,190,30,5);
ellipse(57+l,337+t-1+h,0,180,18,5);
line(26+l,320+t+3+h,26+l,328+t+2+h);
line(88+l,320+t+3+h,88+l,327+t+3+h);
//////setfillstyle(6,15);floodfill(60+l,320+h+t,15);
//////////////// setfillstyle(10,15);
floodfill(60+l,320+h-35,15);
//3rd//stage//line(38+l,225+h,41+l,152+h);
line(75+l,225+h,72+l,152+h);
t=-182;
line(32+l,328+t+4+h,32+7+l,334+t+h);
// slantline(80+l,328+t+4+h,73+l,334+t+h);
// slant//line(+l83,323+t+4,75,334+t);
// slantline(76+l,323+t+5+h,71+l,332+t+h);
line(66+l,323+t+4+h,65+l,332+t+h);
// slantline(57+l,323+t+4+h,57+l,332+t-2+h);
// slant//line(30,323+t+2,39,334+t);
// slantline(39+l,323+t+6+h,45+l,332+t+1+h);
line(48+l,323+t+4+h,51+l,332+t+h);
// slantellipse(57+l,320+t+6+h,360,190,24,5);
ellipse(57+l,327+t+4+h,360,190,24,5);
ellipse(57+l,337+t-1+h,0,170,16,5);
line(32+l,320+t+6+h,32+l,328+t+3+h);
line(81+l,320+t+6+h,81+l,327+t+3+h);
setfillstyle(6,15);
floodfill(60+l,322+h+t,15);
//////setfillstyle(10,15);
floodfill(60+l,322+h+t+30,15);
//GGF################TOWER%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%//
ellipse(51+l,132+h,340,216,4,15);
ellipse(62+l,131+h,327,216,4,15);
ellipse(72+l,132+h,327,216,2,15);
ellipse(42+l,132+h,327,216,2,15);
ellipse(57+l,107+h,0,170,16,5);
line(40+l,107+h,40+l,140+h);
line(75+l,107+h,75+l,140+h);
line(34+l,107+h,40+l,107+h);
line(75+l,107+h,81+l,107+h);
line(34+l,107+h,28+l,102+h);
//slantline(81+l,107+h,87+l,102+h);
line(28+l,102+h,34+l,98+h);
line(87+l,102+h,81+l,98+h);
line(34+l,98+h,58+l,95+h);
line(58+l,95+h,81+l,98+h);
ellipse(65+l,92+h,104,190,30,30);
ellipse(50+l,92+h,350,76,30,30);
line(58+l,61+h,58+l,63+h);
circle(58+l,58+h,3);
line(58+l,55+h,58+l,53+h);
circle(58+l,50+h,2);
line(58+l,48+h,58+l,47+h);
circle(58+l,45+h,1);
line(58+l,44+h,58+l,41+h);
setfillstyle(6,15);
floodfill(60+l-2,322+h+t-60,15);
(10,15);
floodfill(60+l-2,322+h+t-30,15);
////////GGF################TOWER%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%//
ellipse(51+l,132+h,340,216,4,15);
ellipse(62+l,131+h,327,216,4,15);
ellipse(72+l,132+h,327,216,2,15);
ellipse(42+l,132+h,327,216,2,15);
ellipse(57+l,107+h,0,170,16,5);
line(40+l,107+h,40+l,140+h);
line(75+l,107+h,75+l,140+h);
line(34+l,107+h,40+l,107+h);
line(75+l,107+h,81+l,107+h);
line(34+l,107+h,28+l,102+h);
//slantline(81+l,107+h,87+l,102+h);
line(28+l,102+h,34+l,98+h);
line(87+l,102+h,81+l,98+h);
line(34+l,98+h,58+l,95+h);
line(58+l,95+h,81+l,98+h);
ellipse(65+l,92+h,104,190,30,30);
ellipse(50+l,92+h,350,76,30,30);
line(58+l,61+h,58+l,63+h);
circle(58+l,58+h,3);
line(58+l,55+h,58+l,53+h);
circle(58+l,50+h,2);
line(58+l,48+h,58+l,47+h);
circle(58+l,45+h,1);
line(58+l,44+h,58+l,41+h);
//=================================Ist tower========================////+++++++++++++++++++++++++++++++++TAJ mahal++++++++++++++++++++++++//////
setcolor(15);
rectangle(275,290,365,440);
// innerrectangle(268,283,372,440);
// //innersetfillstyle(1,15);floodfill(274,294,15);
line(280,440,280,350);
//line(283,440,283,350);
ellipse(315,349,130,180,35,40);
ellipse(275,280,290,326,53,40);
line(360,440,360,350);
ellipse(325,349,360,50,35,40);
ellipse(361,280,216,255,53,40);
setfillstyle(9,7);
floodfill(277,386,15);
putpixel(277,386,14);
line(280,360,359,360);
line(280,364,359,364);
setfillstyle(1,15);
floodfill(281,362,15);
rectangle(295+4,370,345-4,440);
rectangle(292+4,367,348-4,440);
setfillstyle(1,15);
floodfill(294+4,369,15);
rectangle(296,378,344,380);
floodfill(301,379,15);
line(302,405,302,440);
line(338,405,338,440);
ellipse(327,405,108,180,25,20);
ellipse(313,405,360,74,25,20);
setfillstyle(7,15);
//putpixel(312,416,11);
//floodfill(312,406,15);
line(329,390,329,440);
line(310,391,310,440);
line(311,402,329,402);
line(311,422,329,422);
line(302,412,310,412);
line(329,412,338,412);
line(302,428,310,428);
line(329,428,338,428);
//setfillstyle(7,15);
int p=-60;line(302,405+p,302,440+p-20);
line(338,405+p,338,440+p-20);
ellipse(327,405+p,108,180,25,20);
ellipse(313,405+p,360,74,25,20);
setfillstyle(7,15);
floodfill(311,406,15);
line(329,390+p,329,440+p-20);
line(310,391+p,310,440+p-20);
line(311,402+p,329,402+p);
line(311,422+p-7,329,422+p-7);
line(302,412+p,310,412+p);
line(329,412+p,338,412+p);
//??//////////////////////////////////2nd portion/////////////////////
rectangle(245,260,400,440);
// innerrectangle(230,245,415,440);
// //innerrectangle(230,425,275,440);
setfillstyle(1,15);
floodfill(231,426,15);
floodfill(249,426,15);
////setcolor(8);
rectangle(230+135,425,275+140,440);
//setfillstyle(1,15);
floodfill(231+160,426,15);
floodfill(249+159,426,15);
////setcolor(15);
line(415,290,415,440);
line(420,245,420,440);
line(415,240,415,205);
line(420,240,420,205);
line(225,245,225,440);
//verticalline(230,250,230,440);
line(225,240,225,205);
//verticalline(230,240,230,205);
line(222,240,425,240);
line(222,245,425,245);
//horzellipse(222,242.5,90,270,2.5,2.5);
ellipse(425,242.5,270,90,2.5,2.5);
rectangle(231,230,414,239);
ellipse(227,206,0,180,9,1);
ellipse(227,204,0,180,9,1);
putpixel(220,204,15);
putpixel(220,205,15);
putpixel(220,206,15);
putpixel(235,204,15);
putpixel(235,205,15);
putpixel(235,206,15);
ellipse(227,203,0,180,6,7);
line(227,195,227,192);
int r=190;
ellipse(227+r,206,0,180,9,1);
ellipse(227+r,204,0,180,9,1);
putpixel(220+r,204,15);
putpixel(220+r,205,15);
putpixel(220+r,206,15);
putpixel(235+r,204,15);
putpixel(235+r,205,15);
putpixel(235+r,206,15);
ellipse(227+r,203,0,180,6,7);
line(227+r,195,227+r,192);
/*//floodfill(305,424,15);
//floodfill(305,429,15);
//floodfill(325,424,15);
//floodfill(325,421,15);
//floodfill(332,420,15);
//floodfill(332,429,15);
*/ellipse(315,170,140,210,105,100);
ellipse(330,170,330,40,105,100);
ellipse(292,167,105,140,75,95);
ellipse(353,167,40,75,75,95);
ellipse(323,78,350,190,60,8);
ellipse(323,77,350,190,60,8);
//ellipse(259,24,295,358,58,51);
ellipse(240,24,321,358,78,71);
ellipse(192,40,342,7,128,100);
ellipse(448,30,180,203,128,100);
ellipse(443,5,194,220,128,100);
ellipse(438,-9,203,234,128,100);
ellipse(198,-6,310,340,128,100);
ellipse(319,30,0,360,7,2);
floodfill(320,29,15);
circle(319,24,3);
line(319,20,319,18);
circle(319,14,4);
line(319,9,319,0);
//ellipse(319,4,0,360,2,3);
circle(319,2,1);
line(316,6,322,6);
line(316,6,314,4);
line(322,6,324,4);
//???????????????????????????????????////////////////////////////////////////////////////////////
ellipse();
ellipse(321,258,48,130,140,50);
ellipse(321,255,48,130,140,50);
ellipse(321,241,48,130,140,50);
ellipse(321,238,48,130,140,50);
//setfillstyle(6,11);
// line(265,79,277,70);
//////setcolor(4);
//line(385,81,380,76);
//while(!kbhit())//
{
delay(300);
setfillstyle(10,15);
floodfill(322,160,15);
setfillstyle(6,15);
floodfill(322,193,15);
//
}
//line(319,26,319,480+h);
//center ///////////////////////////////////////////new////////////////////////////rectangle(150,283,225,294);
//line(146,294,225,294);
line(150,298,225,298);
line(150,240,150,440);
//poleline(146,240,146,440);
line(150,299,150,440);
//poleline(146,299,146,440);
r=-80;
int n=34;
ellipse(227+r,206+n,0,180,9,1);
ellipse(227+r,204+n,0,180,9,1);
putpixel(220+r,204+n,15);
putpixel(220+r,205+n,15);
putpixel(220+r,206+n,15);
putpixel(235+r,204+n,15);
putpixel(235+r,205+n,15);
putpixel(235+r,206+n,15);
ellipse(227+r,203+n,0,180,6,7);
line(227+r,195+n,227+r,192+n);
l=128;
h=150;
ellipse(51+l,132+h-7,340,216,4,15);
ellipse(62+l,131+h-7,327,216,4,15);
ellipse(72+l,132+h-7,327,216,2,15);
ellipse(42+l,132+h-7,327,216,2,15);
ellipse(57+l,107+h,0,170,16,5);
line(40+l,107+h,40+l,140+h-7);
line(75+l,107+h,75+l,140+h-7);
line(34+l,107+h,40+l,107+h);
line(75+l,107+h,81+l,107+h);
line(34+l,107+h,28+l,102+h);
//slantline(81+l,107+h,87+l,102+h);
line(28+l,102+h,34+l,98+h);
line(87+l,102+h,81+l,98+h);
line(34+l,98+h,58+l,95+h);
line(58+l,95+h,81+l,98+h);
ellipse(65+l,92+h,104,190,30,30);
ellipse(50+l,92+h,350,76,30,30);
line(58+l,61+h,58+l,63+h);
circle(58+l,58+h,3);
line(58+l,55+h,58+l,53+h);
circle(58+l,50+h,2);
line(58+l,48+h,58+l,47+h);
circle(58+l,45+h,1);
line(58+l,44+h,58+l,41+h);
line(100-5,240+15,100-5,440);
//poleline(96-5,240+15,96-5,440);
r=-134;
n=49;
ellipse(227+r,206+n,0,180,9,1);
ellipse(227+r,204+n,0,180,9,1);
putpixel(220+r,204+n,15);
putpixel(220+r,205+n,15);
putpixel(220+r,206+n,15);
putpixel(235+r,204+n,15);
putpixel(235+r,205+n,15);
putpixel(235+r,206+n,15);
ellipse(227+r,203+n,0,180,6,7);
line(227+r,195+n,227+r,192+n);
line(146,294,97,302);
line(146,298,97,306);
line(146,283,97,291);
///////////////////////////////////////inner///////////////////
rectangle(275+k,290,365+k,440);
// inner//rectangle(268+k,283,372+k,440);
// //inner//line(225,367,151,367);
rectangle(155,302,220,364);
rectangle(155,302+70,220,364+75);
int q=-133;int d=-2;
line(302+q-5,405+d,302+q-5,440+d);
line(338+q+5,405+d,338+q+5,440+d);
ellipse(327+q+5,405+d,108,180,35,30);
ellipse(313+q-5,406+d,360,74,35,30);
d=-77;
line(302+q-5,405+d,302+q-5,440+d);
line(338+q+5,405+d,338+q+5,440+d);
ellipse(327+q,405+d,105,180,30,25);
ellipse(313+q,405+d,360,80,30,25);
putpixel(163,300,11);
setfillstyle(6,15);
floodfill(163,330,15);
floodfill(160,380,15);
line(141,305,141,360);
line(101,310,101,365);
line(141,305,101,310);
line(141,360,101,365);
int x=70;
line(141,305+x,141,440);
line(101,310+x,101,440);
line(141,305+x,101,310+x);
q=-200;
line(302+q+4,405+d,302+q+4,440+d);
line(338+q-1,405+d,338+q-1,440+d-2);
ellipse(327+q,405+d,105,180,20,15);
ellipse(313+q+4,405+d,360,80,20,15);
d=1;
line(302+q+4,405+d,302+q+4,440+d-2);
line(338+q-1,405+d,338+q-1,440+d-2);
ellipse(327+q,405+d,105,180,20,15);
ellipse(313+q+4,405+d,360,80,20,15);
rectangle(178,415,197,439);
setfillstyle(7,15);
floodfill(179,416,15);
rectangle(178,415-75,197,440-76);
setfillstyle(7,15);
floodfill(179,415-75+1,15);
line(130-3,417,130-3,440);
line(113+3,420,113+3,440);
line(113+3,420,130-3,417);
putpixel(114,423,4);
line(113,440,130,440);
floodfill(114+3,423,15);
int a=-76;
line(130-3,417+a,130-3,440+a-3);
line(113+3,420+a,113+3,440+a);
line(113+3,420+a,130-3,417+a);
putpixel(114,423,4);
floodfill(114+3,423+a,15);
line(10,400+h,615,400+h);
//////////////////////////////////////////////right\\\\\\\\\\\
int e=270;
rectangle(150+e,283,226+e,294);
line(146+e+4,294,225+e,294);
line(146+e+4,298,225+e,298);
line(150+e+80,240,150+e+80,440);
//poleline(146+e+80,240,146+e+80,440);
line(150+e+80,299,150+e+80,440);
//poleline(146+e+80,299,146+e+80,440);
l=400;
h=+149;
ellipse(51+l,132+h-7,340,216,4,15);
ellipse(62+l,131+h-7,327,216,4,15);
ellipse(72+l,132+h-7,327,216,2,15);
ellipse(42+l,132+h-7,327,216,2,15);
ellipse(57+l,107+h,0,170,16,5);
line(40+l,107+h,40+l,140+h-7);
line(75+l,107+h,75+l,140+h-7);
line(34+l,107+h,40+l,107+h);
line(75+l,107+h,81+l,107+h);
line(34+l,107+h,28+l,102+h);
//slantline(81+l,107+h,87+l,102+h);
line(28+l,102+h,34+l,98+h);
line(87+l,102+h,81+l,98+h);
line(34+l,98+h,58+l,95+h);
line(58+l,95+h,81+l,98+h);
ellipse(65+l,92+h,104,190,30,30);
ellipse(50+l,92+h,350,76,30,30);
line(58+l,61+h,58+l,63+h);
circle(58+l,58+h,3);
line(58+l,55+h,58+l,53+h);
circle(58+l,50+h,2);
line(58+l,48+h,58+l,47+h);
circle(58+l,45+h,1);
line(58+l,44+h,58+l,41+h);
r=270;
n=n-15;
ellipse(227+r,206+n,0,180,9,1);
ellipse(227+r,204+n,0,180,9,1);
putpixel(220+r,204+n,15);
putpixel(220+r,205+n,15);
putpixel(220+r,206+n,15);
putpixel(235+r,204+n,15);
putpixel(235+r,205+n,15);
putpixel(235+r,206+n,15);
ellipse(227+r,203+n,0,180,6,7);
line(227+r,195+n,227+r,192+n);
line(146+e+135,302,97+e+135,294);
line(146+e+135,306,97+e+135,298);
line(146+e+135,291,97+e+135,283);
line(100-5+e+190,240+15,100-5+e+190,440);
//poleline(96-5+e+190,240+15,96-5+e+190,440);
r=325;
n+=15;
ellipse(227+r,206+n,0,180,9,1);
ellipse(227+r,204+n,0,180,9,1);
putpixel(220+r,204+n,15);
putpixel(220+r,205+n,15);
putpixel(220+r,206+n,15);
putpixel(235+r,204+n,15);
putpixel(235+r,205+n,15);
putpixel(235+r,206+n,15);
ellipse(227+r,203+n,0,180,6,7);
line(227+r,195+n,227+r,192+n);
rectangle(155+e,302,220+e,364);
rectangle(155+e,302+70,220+e,364+75);
q=140;
d-=1;
line(302+q-5,405+d,302+q-5,440+d);
line(338+q+5,405+d,338+q+5,440+d);
ellipse(327+q+5,405+d,108,180,35,30);
ellipse(313+q-5,406+d,360,74,35,30);
d=-77;line(302+q-5,405+d,302+q-5,440+d);
line(338+q+5,405+d,338+q+5,440+d);
ellipse(327+q,405+d,105,180,30,25);
ellipse(313+q,405+d,360,80,30,25);
putpixel(163,300,11);
setfillstyle(6,15);
floodfill(163,330,15);
floodfill(160,380,15);
/////////////////////////////
e=e-15;
line(141+e+150,305+5,141+e+150,360+5);
line(101+e+150,310-5,101+e+150,365-5);
line(101+e+150,305,141+e+150,310);
line(101+e+150,360,141+e+150,365);
int v=75;
line(141+e+150,305+5+v-5,141+e+150,440);
line(101+e+150,310-5+v-5,101+e+150,440);
line(101+e+150,305+v-5,141+e+150,310+v-5);
//line(101+e+150,360+v,141+e+150,365+v);
e=e+18;
rectangle(178+e,415,197+e,439);
setfillstyle(7,15);
floodfill(179+e,416,15);
int f=-75;
rectangle(178+e,415+f,197+e,439+f);
setfillstyle(7,15);floodfill(179+e,416+f,15);
e+=130;
line(130-3+e,440+a-2,130-3+e,417+a+2);
line(113+3+e,440+a-2,113+3+e,420+a-2);
line(113+3+e,417+a,130-3+e,420+a);
putpixel(114+e,423,4);
floodfill(114+3+e,423+a,15);
a=1;
line(130-3+e,440+a-2,130-3+e,417+a+2);
line(113+3+e,440+a-2,113+3+e,420+a-2);
line(113+3+e,417+a,130-3+e,420+a);
putpixel(114+e,423,4);
line(113+3+e,440,130-3+e,440);
floodfill(114+3+e,423+a,15);
q=204;
line(302+q+4,405+d,302+q+4,440+d-2);
line(338+q-1,405+d,338+q-1,440+d+2);
ellipse(327+q,405+d,105,180,20,15);
ellipse(313+q+4,405+d,360,80,20,15);
q=204;
d=0;
line(302+q+4,405+d,302+q+4,440+d-1);
line(338+q-1,405+d,338+q-1,440+d);
ellipse(327+q,405+d,105,180,20,15);
ellipse(313+q+4,405+d,360,80,20,15);
line(302+q+4,440,302+q+4,440);
setfillstyle(10,15);
floodfill(322,160,15);
setfillstyle(6,15);
floodfill(322,193,15);
////////////////////////////////////////////
///walls////////////
//setfillstyle(9,15);
floodfill(110,294,15);
floodfill(210,290,15);
floodfill(430,290,15);
floodfill(520,290,15);
///////////////////////////////////////////
//polessetfillstyle(6,15);
floodfill(93,394,15);
floodfill(148,394,15);
floodfill(227,394,15);
floodfill(417,394,15);
floodfill(498,394,15);
floodfill(553,394,15);
setfillstyle(9,15);
floodfill(185,224,15);
floodfill(465,224,15);
while(!kbhit())
{
delay(40);
putpixel(random(640),random(248),random(15));
}
getch();
cleardevice();
setcolor(13);
rectangle(1,1,639,479);
rectangle(15,15,624,464);
//setcolor(LIGHTBLUE);
setfillstyle(6,11);
floodfill(2,2,13);
settextstyle(7,0,3);
setcolor(12);
outtextxy(150,200,"MADE BY : xxxxxxxxxxxxx") ;
outtextxy(175,300,"BTECH IV YEAR");
outtextxy(75,400,"E-Mail: ******************** ");
//delay(1000);
getch();
return 0;
}

Sunday, August 31, 2008

Sachin Tendulkar Biography


He was born April 24, 1973, Mumbai, India Indian professional cricket player, considered by many to be one of the greatest batsmen of all time. In 2005 he became the first cricketer to score 35 centuries in Test (international) play.
Tendulkar was given his first bat when he was 11. As a 14-year-old, he used it to score 329 out of a world-record stand of 664 in a school match. A year later he scored a century on his first-class debut for Bombay (Mumbai), and at 16 years 205 days he became India's youngest Test cricketer, making his debut against Pakistan in Karachi in November 1989. When he was 18 he scored two centuries in Australia (148 in Sydney and 114 in Perth), and in 1994 he scored 179 against the West Indies. In August 1996, at age 23, Tendulkar was made captain of his country's team.
Although India was defeated in the semifinals of the 1996 World Cup, Tendulkar emerged as the tournament's top run scorer, with 523 runs. In 1997 he was chosen for the Rajiv Gandhi Khel Ratna Award, the highest award given to an Indian athlete, for his outstanding performance in the 1997–98 season. India was defeated by Australia in the 1999 World Cup, failing to advance past the round of six, and was soundly defeated by both Australia and South Africa in series later that year. In the 2003 World Cup, however, Tendulkar helped his team advance as far as the finals. Though India was again defeated by Australia, Tendulkar, who averaged 60.2, was named the man of the tournament.
Tendulkar made history in December 2005 when he scored his record-breaking 35th century in Test play against Sri Lanka. The feat was accomplished in a total of 125 Tests and allowed Tendulkar to surpass the prolific Indian run scorer Sunil Gavaskar. In June 2007 Tendulkar reached another major milestone when he became the first player to record 15,000 runs in one-day international play. Throughout his long career Tendulkar was consistently ranked among the game's best batsmen. He was often likened to Australia's Don Bradman in his single-minded dedication to scoring runs and the certainty of his strokeplay off both front and back foot.

Biography of MS Dhoni


I am giving you a short story about Mahi now today who is more familiar as a MS Dhoni. I believe that life doesn’t go same way. No one can live with happy all time or struggle life should carry a happy day for you. If you work hard then surely you will enjoy your future. Today we see a most popular and wealthier Mahi (MS Dhoni) but his life was not same in his childhood. Mahi was a boy of a poor family. He is the youngest son of Pan Singh and Devaki Dev. His family moved from Uttaranchal. Pan Singh worked in junior management positions in Mecon. Pan Singh’s salary was not enough to afford a big family.
You will be astonished to hear that star cricketer in national team MS Dhoni didn’t think he will be a cricketer. Dhoni studied at DAV Jawahar Vidya Mandir, Shyamali, Ranchi. He started his sports career in football as a goalkeeper. Being not playing cricket little boy Dhoni impressed his coach with his wicket-keeping skill and became a regular at the commando cricket club. Then we can see a different Dhoni. Day by day MS Dhoni was getting more chance and go up.
After joining India team he got more popularity as a MS Dhoni. His joining in Indian national team was not so easy. MS Dhoni was picked from Bihar U 19 cricket team where he scored 84 helped to score total 357. Before MS Dhoni’s joining in India team, Indian former captain Rahul Dravid had to keep wicket as they don’t have to lack of batsman and wicket keeping.
MS Dhoni debut in Indian national team against Bangladesh on Dec 23, 2004. And still he is playing in India team. Now, he is acting the role of captain in his own team. Under his captaincy first time India got trophy in Twenty20 world cup 2007 in South Africa. He also got assignment as a captain of India team in their home series against Australia. But he failed. However, Dhoni believes he has many things to give his team as a captain and wicket-keeper cum batsman.
It is impossible to say what will happen in future. May be he will pass his life with happiness or go throw with criticism. I am not sure what will happen as future is unknown and uncertain.If you are fan of MS Dhoni then give there vote to write some

Saturday, August 30, 2008

Computer GraphicsDDA LINE

#include"stdio.h"
#include"graphics.h"
#include"math.h"
main()
{
float x,y,x1,y1,x2,y2,dx,dy,length;
int i,gd,gm;
clrscr();
/* Read two end points of line---------------------------------- */
printf("Enter the value of x1 :\t");
scanf("%f",&x1);
printf("Enter the value of y1 :\t");
scanf("%f",&y1);
printf("Enter the value of x2 :\t");
scanf("%f",&x2);
printf("Enter the value of y2 :\t");
scanf("%f",&y2);
/* Initialise graphics mode---------------------------------- */
detectgraph(&gd,&gm);
initgraph(&gd,&gm,"");
dx=abs(x2-x1);
dy=abs(y2-y1);
if (dx >= dy)
{
length = dx;
}
else
{
length = dy;
}
dx = (x2-x1)/length;
dy = (y2-y1)/length;
x = x1 + 0.5;
/* Factor 0.5 is added to round the values */
y = y1 + 0.5;
/* Factor 0.5 is added to round the values */
i = 1;
/* Initialise loop counter */
while(i <= length)
{
putpixel(x,y,15);
x = x + dx;
y = y + dy;
i = i + 1;
delay(100);
/* Delay is purposely inserted to see observe the line drawing process */
}
getch();
closegraph();
}

Computer Graphics Clock

#include"stdio.h"
#include"conio.h"
#include"graphics.h"
#include"math.h"
#include"time.h"
#include"stdlib.h"
#include"dos.h"
time_t t,t1,t2,diff;int gd,gm,i,j,k,angle,minute,hour;
float b[2][2],a[2][2],c[2][2],e[2][2],f[2][2],g[2][2],h[2][2];
char m[2],hr[2],s[2];
struct time *d,l;
main()
{
int x,y;
clrscr();
initgraph(&gd,&gm," ");
detectgraph(&gd,&gm);
x=getmaxx();
y=getmaxy();
setcolor(4);
circle(0.5*x,0.5*y,0.45*y);
setcolor(13);
circle(0.5*x,0.5*y,0.455*y);
setcolor(4);
circle(0.5*x,0.5*y,0.46*y);
setcolor(13);
circle(0.5*x,0.1*y,0.01*y);
setfillstyle(1,4);
floodfill(0.5*x,0.1*y,13);
circle(0.8*x,0.5*y,0.01*y);
floodfill(0.8*x,0.5*y,13);
circle(0.5*x,0.9*y,0.01*y);
floodfill(0.5*x,0.9*y,13);
circle(0.2*x,0.5*y,0.01*y);
floodfill(0.2*x,0.5*y,13);
t2=time(&t);gettime(d);
angle=d->ti_sec*6;
minute=d->ti_min*6;
hour=d->ti_hour*30;
for(hour=d->ti_hour*30;;hour=hour+30)
{
g[0][0]=0;
g[0][1]=0;
g[1][0]=0;
g[1][1]=-0.15*y;
setcolor(0);
line(h[0][0]+0.5*x,h[0][1]+0.5*y,h[1][0]+0.5*x,h[1][1]+0.5*y);
b[0][0]=cos(hour*3.142/180);
b[0][1]=sin(hour*3.142/180);
b[1][0]=-sin(hour*3.142/180);
b[1][1]=cos(hour*3.142/180);
h[0][0]=g[0][0]*b[0][0]+g[0][1]*b[1][0];
h[0][1]=g[0][0]*b[0][1]+g[0][1]*b[1][1];
h[1][0]=g[1][0]*b[0][0]+g[1][1]*b[1][0];
h[1][1]=g[1][0]*b[0][1]+g[1][1]*b[1][1];
setcolor(4);
line(h[0][0]+0.5*x,h[0][1]+0.5*y,h[1][0]+0.5*x,h[1][1]+0.5*y);
for(minute=d->ti_min*6;minute<=359+d->ti_min*6;minute=minute+6)
{
e[0][0]=0;
e[0][1]=0;
e[1][0]=0;
e[1][1]=-0.25*y;
setcolor(0);
line(f[0][0]+0.5*x,f[0][1]+0.5*y,f[1][0]+0.5*x,f[1][1]+0.5*y);
b[0][0]=cos(minute*3.142/180);
b[0][1]=sin(minute*3.142/180);
b[1][0]=-sin(minute*3.142/180);
b[1][1]=cos(minute*3.142/180);
f[0][0]=e[0][0]*b[0][0]+e[0][1]*b[1][0];
f[0][1]=e[0][0]*b[0][1]+e[0][1]*b[1][1];
f[1][0]=e[1][0]*b[0][0]+e[1][1]*b[1][0];
f[1][1]=e[1][0]*b[0][1]+e[1][1]*b[1][1];
setcolor(4);
line(f[0][0]+0.5*x,f[0][1]+0.5*y,f[1][0]+0.5*x,f[1][1]+0.5*y);
for(;angle<=360;angle=angle+6)
{
a[0][0]=0;
a[0][1]=0;
a[1][0]=0;
a[1][1]=-0.35*y;
setcolor(0);
line(c[0][0]+0.5*x,c[0][1]+0.5*y,c[1][0]+0.5*x,c[1][1]+0.5*y);
b[0][0]=cos(angle*3.142/180);
b[0][1]=sin(angle*3.142/180);
b[1][0]=-sin(angle*3.142/180);
b[1][1]=cos(angle*3.142/180);
c[0][0]=a[0][0]*b[0][0]+a[0][1]*b[1][0];
c[0][1]=a[0][0]*b[0][1]+a[0][1]*b[1][1];
c[1][0]=a[1][0]*b[0][0]+a[1][1]*b[1][0];
c[1][1]=a[1][0]*b[0][1]+a[1][1]*b[1][1];
setcolor(4);
line(c[0][0]+0.5*x,c[0][1]+0.5*y,c[1][0]+0.5*x,c[1][1]+0.5*y);
line(f[0][0]+0.5*x,f[0][1]+0.5*y,f[1][0]+0.5*x,f[1][1]+0.5*y);
line(h[0][0]+0.5*x,h[0][1]+0.5*y,h[1][0]+0.5*x,h[1][1]+0.5*y);
do
{
t=time(&t1);k=difftime(t,t2);
}
while(k<1);
t2=t;
gettime(d);
itoa(d->ti_hour,hr,10);
setviewport(1,1,110,30,0);
clearviewport();
setviewport(0,0,639,479,0);
outtextxy(10,10,hr);
itoa(d->ti_min,m,10);
outtextxy(50,10,m);
itoa(d->ti_sec,s,10);
outtextxy(90,10,s);
if (kbhit()!=0)
{
break;
}
}
angle=0;
}
minute = 0;
}
getch();
closegraph();
}


Friday, August 29, 2008

Biography of James Gosling

Biography of James Gosling



James Gosling was born on May 19, 1956 in Canada. James Gosling was born on May 19, 1956 in Canada. He recieved a Bachelor of Science degree at the University of Alberta in 1977. Afterwards, he went to Carnegie-Mellon University in Pittsburgh, Pennsylvania, and recieved a Ph.D. in computer science. From there he went on to work for Sun Microsystems in 1984.
Contributions to Computer Science
While at Sun Microsystems, Gosling has created many programs in the advance of computer technology. He created a text editor for Unix called Emacs, which is now a very popular editor. He also created a multiprocessor version of Unix, along with several different code compilers. He led the creation of Network Extensible Windowing System, or NeWS, which can distribute processing power of a computer network. His most famous work, however, is the development of Java. The original concept of Java, began in 1991, was to develop an interactive television called First Person. Later in the 1990's the Green Team (the team led by Gosling that was working on the development of First Person) decided that an interactive web language needed to be created. Thus, Java was born.
Importance of Java
Today, Java has become an important part of the Internet. It can be used in multiple different ways. It provides a useful tool for web designers to grab and keep the attention of visitors. It is an excellent way to make Internet-based games, such as the popular game Dragon Court.

Once hailed, then left behind and now finding new applications, James Gosling's Java platform is finally coming of age. Jack Schofield spoke to the man himself.
IT MAY sound hard to believe, but a decade ago, Sun's Java computer language was one of the hottest topics in technology. Netscape was going to write its new applications in Java; Java applets were going to dominate the web; universities and colleges were starting to teach it as their standard programming language; while its supporters and some of the more starry-eyed advocates and journalists even imagined it overturning Microsoft.
All this turned James Gosling - who is considered the father of Java - into something of a superstar. In recognition of his achievements, he has just been awarded the Order of Canada, his country's highest honour. "I have to go and get whacked with a sword," Gosling says.
After the years of hype there came, inevitably, the years of backlash. Netscape dumped its Java programming efforts and Java applets failed to make any impact on the web. In 2001, a Salon online magazine headline called Java slow, ugly and irrelevant, and in 2005, a Business Week article proclaimed: "Java? It's so Nineties."
Microsoft - locked out of Java after losing a lawsuit - developed its own Java-style language, C#, which became widely used, while most of the advocates moved on to trendier languages: Perl, Python, PHP, Ruby on Rails, Ajax and so on.
Now, things are, happily, coming back to a more even keel, so I was pleased to catch up with Gosling at a recent Java conference. He's a big man who speaks slowly and, at the end of a long day, he's as laid-back as you can get in an upright chair.
The major development is that Sun is making its Java platforms open source under the Free Software Foundation's general public licence (GPL) following years of complaints by IBM, so I ask him if that's going to make any difference. He points out that "Java has been functioning largely as an open source project for many years" and that "the source code has been available for a long time". All Sun has done is switch to using "one of the more commonly accepted" open licences.
"To be honest, the biggest thing we get is that a bunch of the important Linux distributions, such as Debian, can now put (Java) in the box," he says. As for IBM: "They've engaged in all kinds of stunts," Gosling says. "There was that open letter that Rod Smith wrote saying 'Oh, Sun, you should go open source', and of course that was complete puffery. It wouldn't have made any difference to them because they already had all the rights that anybody could ever want.
"And when we did actually change the licence, IBM was really upset. They wanted a licence that said they could do whatever they damn well pleased. So we went for a GPL licence that says: 'We're sharing so you have to reciprocate by sharing too'. That seems fair. They wanted us to give them everything and for them to give nothing back."
Sun previously resisted going open source because the GPL allows groups of developers to take it down different, incompatible paths. "Yeah, and a bunch of years ago, I think that was a fairly valid concern," says Gosling, "but it's become pretty clear that the market really values compatibility. If people start doing incompatible forks, market pressure is probably going to be a more effective enforcer of compatibility than a licence would be."
Several years ago, Microsoft was developing a licensed version of Java - in effect, forking it - which led Sun to sue. Sun won, but the end of Microsoft's development seemed to take the steam out of desktop Java.
"It was a big problem. We've been slowly building back. We did the licence with them as a defensive thing and, early on, actually, they were quite wonderful partners," Gosling says.
"Their engineering team was great and they were being good community members. Then there was this memo that came down from on high that said 'that's not the Microsoft model' and the relationship went sour."
So what about Java's future? "Well, it's kind of a chaotic community; there's no unifying direction because it's a lot of people taking their own applications off in lots of different directions," Gosling says.
"The stuff I'm sweating about most today is what's happening to the diversity of things on the client side, the network. The cellphone world is really growing up and cellphones are in many places becoming the desktop. But also things like cable television; set-top boxes and IPTV are getting really interesting and Java is involved in both of those.
"The Blu-ray next-generation DVD standard has Java pretty heavily involved. So there's a real sea change in the client end of the network and I'm putting a reasonable amount of sweat into making sure that doesn't come out aggressively stupid. There are so many actors, it's kind of hard to keep everybody aligned."
It's interesting, I respond, that Java has done so well on mobiles when its performance problems limited its adoption on desktops. "Well, certainly in terms of a platform for running games and things, it doesn't really have any competition," Gosling says.
"You can load a game and not worry about destroying your ability to make a phone call; that was a big deal. Also, on the phone, we didn't really have the same demands - plus the CPUs used in phones are pretty cool these days. It took us a bunch of time to build major-rocket-science optimisers, but now we're beating C and C++ pretty regularly.
"The future of Java for me really is wherever the developers take it. Probably the biggest place where Java is used in anger is enterprise computing and that's gotten to be one of its most mature and solid areas. I don't think there's going to be much dramatic change there for the next five years. The most interesting stuff is at the edge points where there are different kinds of devices connected to the network," Gosling says.
"Folks are doing strange and interesting stuff in things like the automotive market and broadband TV. It's the sort of thing where, tragically, the big business is games, or game-like things that are correlated to live TV shows with large-scale audience participation.
"The hard part is no longer technology. As a technologist, you get to the point where there's really nothing to invent to make things better. It's really more about the social experience of businesses and their customers, and it's impossible to predict what people will be willing to pay for.
"For example, I don't understand why ring tones are so successful financially, or why people will spend more money on water than they do on wine. I hope there's somebody out there who understands market psychology. It's not me."




Monday, August 18, 2008

CPP GRAPICS




// diction.cpp: Implementation of the Dictionary class
// from Hands-on C++
#include "diction.h"

int Dictionary::find_word(char *s)
{
char word[81];
for (int i = 0; i < nw =" 0;" word_idx =" find_word(word);">= 0)
{
while (words[word_idx].get_meaning(nw,meaning) != 0)
{
def[nw] = new char[strlen(meaning)+1];
strcpy(def[nw++],meaning);
}
def[nw] = 0;
}

return nw;
}



// diction.h: The Dictionary class
// from Hands-on C++
#include "def.h"

const int Maxwords = 100;

class Dictionary
{
Definition *words; // An array of definitions; line 9
int nwords;

int find_word(char *); // line 12

public:
// The constructor is on the next line
Dictionary(int n = Maxwords) {nwords = 0; words = new Definition[n];};
~Dictionary() {delete words;}; // This is the destructor
void add_def(char *s, char **def);
int get_def(char *, char **);
};


// stack.cpp: Implementation of the Stack class
// from Hands-on C++
#include
#include "stack.h"

int Stack::push(int elem)
{
int m = getmax();
if (top <> 0)
{
get_elem(elem,--top);
return 0;
}
else
return -1;
}

void Stack::print()
{
int elem;

for (int i = top-1; i >= 0; --i)
{ // Print in LIFO order
get_elem(elem,i);
cout <<>// Graphics library declarations
#include "point.h" // Location and Point class declarations
#include // for string functions
#include // for console I/O

// link with point2.obj and graphics.lib

// The class hierarchy:
// Location->Point->Circle
// (Circle and CMessage)->MCircle

class Circle : public Point { // Derived from class Point and
// ultimately from class Location
protected:
int Radius;
public:
Circle(int InitX, int InitY, int InitRadius);
void Show(void);
};


class GMessage : public Location {
// display a message on graphics screen
char *msg; // message to be displayed
int Font; // BGI font to use
int Field; // size of field for text scaling

public:
// Initialize message
GMessage(int msgX, int msgY, int MsgFont, int FieldSize,
char *text);
void Show(void); // show message
};


class MCircle : Circle, GMessage { // inherits from both classes
public:
MCircle(int mcircX, int mcircY, int mcircRadius, int Font,
char *msg);
void Show(void); // show circle with message
};


// Member functions for Circle class

//Circle constructor
Circle::Circle(int InitX, int InitY, int InitRadius) :
Point (InitX, InitY) // initialize inherited members
//also invokes Location constructor
{
Radius = InitRadius;
};

void Circle::Show(void)
{
Visible = true;
circle(X, Y, Radius); // draw the circle
}

// Member functions for GMessage class

//GMessage constructor
GMessage::GMessage(int msgX, int msgY, int MsgFont,
int FieldSize, char *text) :
Location(msgX, msgY)
//X and Y coordinates for centering message
{
Font = MsgFont; // standard fonts defined in graph.h
Field = FieldSize; // width of area in which to fit text
msg = text; // point at message
};

void GMessage::Show(void)
{
int size = Field / (8 * strlen(msg)); // 8 pixels per char.
settextjustify(CENTER_TEXT, CENTER_TEXT); // centers in circle
settextstyle(Font, HORIZ_DIR, size); // magnify if size > 1
outtextxy(X, Y, msg); // display the text
}

//Member functions for MCircle class

//MCircle constructor
MCircle::MCircle(int mcircX, int mcircY, int mcircRadius, int Font,
char *msg) : Circle (mcircX, mcircY, mcircRadius),
GMessage(mcircX,mcircY,Font,2*mcircRadius,msg)
{
}

void MCircle::Show(void)
{
Circle::Show();
GMessage::Show();
}

main() //draws some circles with text
{
int graphdriver = DETECT, graphmode;
initgraph(&graphdriver, &graphmode, "..\\bgi");
MCircle Small(250, 100, 25, SANS_SERIF_FONT, "You");
Small.Show();
MCircle Medium(250, 150, 100, TRIPLEX_FONT, "World");
Medium.Show();
MCircle Large(250, 250, 225, GOTHIC_FONT, "Universe");
Large.Show();
getch();
closegraph();
return 0;
}

// figures.h contains three classes.
//
// Class Location describes screen locations in X and Y
// coordinates.
//
// Class Point describes whether a point is hidden or visible.
//
// Class Circle describes the radius of a circle around a point.
//
// To use this module, put #include in your main
// source file and compile the source file FIGURES.CPP together
// with your main source file.

enum Boolean {false, true};

class Location {
protected:
int X;
int Y;
public:
Location(int InitX, int InitY) {X = InitX; Y = InitY;}
int GetX() {return X;}
int GetY() {return Y;}
};

class Point : public Location {
protected:
Boolean Visible;
public:
Point(int InitX, int InitY);
virtual void Show(); // Show and Hide are virtual
virtual void Hide();
virtual void Drag(int DragBy); // new virtual drag function
Boolean IsVisible() {return Visible;}
void MoveTo(int NewX, int NewY);
};

class Circle : public Point { // Derived from class Point and
// ultimately from class Location
protected:
int Radius;
public:
Circle(int InitX, int InitY, int InitRadius);
void Show();
void Hide();
void Expand(int ExpandBy);
void Contract(int ContractBy);
};

// prototype of general-purpose, non-member function
// defined in FIGURES.CPP

Boolean GetDelta(int& DeltaX, int& DeltaY);




Windows Mobile 6 Announced, Released Soon





Windows Mobile 6, formerly known as Crossbow has been announced, and should start appearing on phones mid to late this year! Microsoft has been pretty quiet about this one all along, but even a year ago, people were able to get a glimpse into what Microsoft had brewing with a very pre-mature leaked version. More recently, Screenshots became available which gave us a better idea of what Microsoft was planning.
The Windows Mobile Team is ready to officially reveal Windows Mobile 6 next week at the 3GSM show in Barcelona. A lot of great features are instore with a focus on improved searching, better security (sound like Vista?), and better integration with Windows Live Services. While the majority of products that will use the operating system won’t be released until later this year, Mobile 6 is expected sometime in the 2nd quarter 2007.




Features include:
HTML Support in email
Windows Live for Windows Mobile
New versions of mobile with better formatting for Outlook, Word, Excel, and PowerPoint
New Security features like remote wipe if the device is lost or stolen
Vista integration
Calendar ribbon
Call history in contact cards
NET Compact Framework and SQL Server built-in
Smartphones will use Windows Mobile 6 “Standard”, Pocket PC’s without the phone will use Windows Mobile 6 “Classic”, and Pocket PC Phones will use Windows Mobile 6 “Professional.”
With all of the improvements, and a new look and feel, it just might be worth the upgrade.



Source: The Hive



YouTube Top Videos

table border="0" align="center" cellpadding="0" cellspacing="0" style="margin:0px; padding:0px; border:1px solid #000000;">Gadget by LabPixies.com

MY Times Classic Crossword

Lucky numbers