Forum Thread: How Will System Mouse Works.?

How Will System Mouse Works.?

I have a doubt in idea about how will optical mouse detect the motions and how will reflect it on the screen.? Any one can teach me...

1 Response

Anagram Checking in c

#include <stdio.h>
#include<conio.h>
int checkanagram(char , char );
main()
{
char a100, b100;
int flag;
printf("\n\t\t****************\n");
textattr(5);
cprintf(" Anagram Checking");
printf("\n");
printf("\t\t****************\n\n\n");
printf("Enter first string\n");
gets(a);
printf("Enter second string\n");
gets(b);
flag = checkanagram(a, b);
if (flag == 1)
printf("\"%s\" and \"%s\" are anagrams.\n", a, b);
else
printf("\"%s\" and \"%s\" are not anagrams.\n", a, b);
printf("Copyright by A.SENTHILKANTH Email : senthilkanth007@ymail.com");
getch();
}
int check
anagram(char a, char b)
{
int first26 = {0}, second26 = {0}, c = 0;
while (ac != '\0')
{
firsta[c-'a'++;
c++;
}
c = 0;
while (bc != '\0')
{
secondb[c-'a'++;
c++;
}
for (c = 0; c < 26; c++)
{
if (firstc != secondc)
return 0;
}
return 1;
}

Share Your Thoughts