Skip to main content

Posts

Showing posts from May, 2009

Earn Rs.2000 daily. No Investment

Wanted Online Internet job workers. Job is only through Internet. Work part time. You can earn Rs.750-2000/- daily. These are genuine Internet jobs. No Investment required . Only serious enquires please. For more details visit http://www.earnparttimejobs.com/index.php?id=1985998 This is for indians also.

An Easy Graphics Program to show Mouse pointer.

Here a program to show mouse pointer in dos graphics mode and also sense the clicking effect. Just Enjoy it. #include<stdio.h> #include<dos.h> #include<graphics.h> #include<conio.h> void main() { int gd=DETECT,gm,x,y; union REGS in,out; initgraph(&gd,&gm,""); in.x.ax=0; int86(0x33,&in,&out); in.x.ax=1; int86(0x33,&in,&out); in.x.ax=3; while(!kbhit()) { int86(0x33,&in,&out); x=out.x.cx; y=out.x.dx; if(out.x.bx==1) putpixel(x,y,RED); } closegraph(); } **Before running the program u have 2 copy the file named 'egibgi.bgi' in the current directory.

A Funny Program in C

The Following Program will convert the keyboard into Piano. Just type the Program and compile it by any C Compiler. Then Run prog and enjoy. #include<stdio.h> #include<conio.h> #include<dos.h> void main() { char ch; while (toupper(ch)!='X') { fflush(stdin); ch=getch(); sound((ch-48)*100); delay(100); } nosound(); }