Kashid beach, Maharashtra
Monday, January 7, 2013
Monday, December 31, 2012
Last post of the year 2012
Hi to all the blog viewer's.
There were few posts this year, I am not sure weather they are interesting or not but I hope u like them...:)
Posts this year were not that frequent, I can promise this 2013 will have more frequent posts with interactive and interesting stuff.....;)
2012 posts were mostly TECHNICAL, which is not good right! ;) So this year will be a pack of music, treck's, sharing and then at last technical...
So goodbye to 2012..I here by welcome 2013 ...hiphip hurray
:)
Wednesday, June 6, 2012
Simplest logic for Time Display on LCD using 8051
/* here time starts from 0 seconds, you can add logic to set the time
not clear den try to make it clear or comment here */
#include reg51.h #include "lcd_display4bit.h" //for header check this void printTime(); long timerCount=; short int count=0; sbit getTime=P1^2; void CountSeconds() interrupt 1 {
not clear den try to make it clear or comment here */
#include reg51.h #include "lcd_display4bit.h" //for header check this void printTime(); long timerCount=; short int count=0; sbit getTime=P1^2; void CountSeconds() interrupt 1 {
Thursday, May 31, 2012
String Sorting Program in C (uses array of pointers to store strings)
/* string sorting program
the logic may be simple but I have used
array of pointers here to store the strings
crucial here is u should you malloc and calloc to get
correct output(because array of pointers are used)*/ #include stdio.h #include string.h #define MAX 50 void main() { char *names[MAX],*dummy; int i=0,j=0,n=0; clrscr(); puts("enter no. of strings you want to enter"); scanf("%d",&n); printf("please enter %d strings\n\n",n);
crucial here is u should you malloc and calloc to get
correct output(because array of pointers are used)*/ #include stdio.h #include string.h #define MAX 50 void main() { char *names[MAX],*dummy; int i=0,j=0,n=0; clrscr(); puts("enter no. of strings you want to enter"); scanf("%d",&n); printf("please enter %d strings\n\n",n);
Sunday, May 27, 2012
Scramble word finder- C program
/* C program for SCRAMBLE word finding
Download a wordlist.txt file on internet which consists of
all possible english words and save it in your program folder
before running the program. */
#include stdio.h #include string.h void main() { FILE *fp; char scramble[12],word[18],dummy[18],c; int i=0,j=0,wordLen,wordLenS,count=0; clrscr(); fp=fopen("wordlist.txt","r"); printf("enter scrambled word--"); scanf("%s",scramble); wordLenS=strlen(scramble);
Download a wordlist.txt file on internet which consists of
all possible english words and save it in your program folder
before running the program. */
#include stdio.h #include string.h void main() { FILE *fp; char scramble[12],word[18],dummy[18],c; int i=0,j=0,wordLen,wordLenS,count=0; clrscr(); fp=fopen("wordlist.txt","r"); printf("enter scrambled word--"); scanf("%s",scramble); wordLenS=strlen(scramble);
Wednesday, May 16, 2012
Pattern Finder in all DIRECTIONS in a GRID of numbers -C program
/* Pattern Finder in all DIRECTIONS in a GRID of numbers -C program
you are allowed to enter a pattern of any length then the ROW and
COL of the pattern occurence is shown in the output.
pattern is searched in ALL THE EIGHT DIRECTIONS */
#include stdio.h #include string.h short int checkPattern(int,int,int); short cp[8][8]={5,4,1,2,3,4,5,6, 6,3,1,2,3,4,5,5, 5,7,5,3,5,1,3,1, 4,1,7,4,3,4,5,1, 3,2,3,4,5,1,5,2, 2,2,5,2,1,4,1,3, 1,4,7,8,6,5,4,4, 6,5,3,2,6,7,8,5}; char p[5]; void main() { int i,j,k;
you are allowed to enter a pattern of any length then the ROW and
COL of the pattern occurence is shown in the output.
pattern is searched in ALL THE EIGHT DIRECTIONS */
#include stdio.h #include string.h short int checkPattern(int,int,int); short cp[8][8]={5,4,1,2,3,4,5,6, 6,3,1,2,3,4,5,5, 5,7,5,3,5,1,3,1, 4,1,7,4,3,4,5,1, 3,2,3,4,5,1,5,2, 2,2,5,2,1,4,1,3, 1,4,7,8,6,5,4,4, 6,5,3,2,6,7,8,5}; char p[5]; void main() { int i,j,k;
Friday, May 11, 2012
Password STRENGTH and VALIDITY checking C program
/* password Strength and Validity checking C program-
This program takes your password and checks weather its valid
are not.
If valid then its checks the password strength and gives
one of the following result : LOW, MEDIUM, HIGH, VERY HIGH.
note-this is my algorithm(most followed), you can change as you need.
*/
#include stdio.h #include conio.h #include string.h #define SIZE 32 short int checkValid(char*); void checkStrength(char*); short int alphabetCount=0, digitCount=0; short int length=0; short int symbolCount=0; //to count symbols like ;'./ etc void main() { char pw[SIZE],c; short int count,error,i=0; clrscr();
This program takes your password and checks weather its valid
are not.
If valid then its checks the password strength and gives
one of the following result : LOW, MEDIUM, HIGH, VERY HIGH.
note-this is my algorithm(most followed), you can change as you need.
*/
#include stdio.h #include conio.h #include string.h #define SIZE 32 short int checkValid(char*); void checkStrength(char*); short int alphabetCount=0, digitCount=0; short int length=0; short int symbolCount=0; //to count symbols like ;'./ etc void main() { char pw[SIZE],c; short int count,error,i=0; clrscr();
Subscribe to:
Posts (Atom)