Sunday, July 8, 2012

How to activate mouse functioning on C Output Screen
The below program will give the mouse position on C output screen

#include<graphics.h>
#include<conio.h>
#include<dos.h>

int initmouse();
void showmouseptr();

union REGS i, o;

main()
{
   int status, gd = DETECT, gm;

   initgraph(&gd,&gm,"C:\\TC\\BGI");

   status = initmouse();

   if ( status == 0 )
      printf("Mouse support not available.\n");
   else
      showmouseptr();

   getch();
   return 0;
}

int initmouse()
{
   i.x.ax = 0;
   int86(0X33,&i,&o);
   return ( o.x.ax );
}

void showmouseptr()
{
   i.x.ax = 1;
   int86(0X33,&i,&o);
}

Thursday, April 5, 2012

java speech recognition

Java speech recognition  is one of the additional feature,that makes java powerful tool.

packages for java speech recognition:

javax.speech is the package that is helpful for java speech recognition.

Thursday, February 23, 2012

Graphics Using C

Hi friends Everyone ,Who is doing their graduation in Computer Science is familiar with C Programming Language.But most of you might thinking getting a doubt that Can we Work with Graphics in C as in Java Or Other Prog.Languages.?
The Answer is YES,We can it may not possible as in java,But Still its Possible.
REQUIREMENTS of the System to run a C graphics Program:
>Turbo c Compiler,and it should be supported in full screen Mode.
>Full Screen mode is nothing but it should be opened in Max.Screen Mode(Most of Windows XP or Lesser Versions Do support This Full Screen Mode).
if have any problem With full Screen mode (Windows 7 doesn't Support Full Screen mode),Then You need to Download "DOSBOX" Software from the following link..http://dosbox.en.softonic.com/download.
 >Just Install the DOSBOX as you install other Softwares.
>Now Create a folder in the same drive where u have installed C.Mine was "c:/Dos" .
And Now it got installed.Any Problem u r getting Just mail me @ pbhushan.143@gmail.com


..........................................................................................................
After the completion of above process you are rready to Play with Graphics in C...
In the above Pic You can see some smileys that are printed on the C output.


#include <stdio.h>
#include <conio.h>
int main()
{
int x,y;
int i=1;
for (x=1;x<25;x++)
printf(" %c ", i); //prints a smiley 
printf("\n"); //goes on next line
getch();
}
This is the Code used to print those smileys on C Output Screen.
...
You can fill the Whole Screen by putting a for loop to the Smiley code..
i.e.

#include <stdio.h>
#include <conio.h>

int main()
{
int x,y;
int i=1;
for(y=1;y<=20;y++)
{
for (x=1;x<25;x++)
printf(" %c ", i); //prints a smiley 
printf("\n"); //goes on next line
}
getch();
}
Reason:
In the above code Character code of 'i' is printed..That is the Smiley.