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...
Forum Thread: How Will System Mouse Works.?
- Hot
- Active
-
How To: Import modules into IDLE in Python
-
How To: Use classes and objects when coding a program in Python
-
How To: Set up a command shell in your Python based program
-
How To: Use the ternary operator to streamline your programming in Python
-
How To: Construct or destruct an object when you're writing code in Python
-
How To: Use tuples and dictionaries when programming in Python
-
How To: Include a file or module with your Python program
-
How To: Install a compiler and start programming in Python
-
How To: Use variables when programming with the Python language
-
How To: Use the basic functions in Python and import modules
-
How To: Create and use your own functions when programming in Python
-
How To: Use strings and slices when programming in Python
-
How To: Use string methods and object methods when programming in Python
-
How To: Use loops when writing a program in Python
-
How To: Incorporate user input into your Python program
-
How To: Use the break, continue and pass tricks in Python loops
-
How To: Create a MySQL database for Celtx media pre-production application
-
How To: Use the Eclipse IDE for Python programming
-
How To: Use variables and strings when programming in Python 2
-
How To: Split and join strings when programming in Python 3
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 checkanagram(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