- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 3
- Posts with Downvotes
- 3
- Downvoting Members
- 3
6 Posted Topics
Login functionality in C-language : Here the user enters the user id and password. The entered user id and password will be compared with the stored ones and user will be authenticated. While user enters password, characters should not be displayed on the screen. user id comparison must be case … | |
Re: #include <conio.h> #include <stdio.h> #include <string.h> #include <stdlib.h> void main() { char a[20],st_char; static int i,j,k,n,st,ctr,main_ctr; printf("Enter the string : "); gets(a); n=strlen(a); if(n<=1) { printf("please enter a valid string :) "); exit(0); } label : for(i=0;i<=n-2;++i) { ctr=0; printf("\n"); printf("%c",a[0]); for(j=i+1;j<=n-1;j++) { printf("%c",a[j]); ctr++; } if(ctr!=n-1) //while(ctr!=n-1) { st=i+1; … | |
Re: #include <conio.h> #include <stdio.h> #include <string.h> #include <stdlib.h> void main() { char a[20],st_char; static int i,j,k,n,st,ctr,main_ctr; printf("Enter the string : "); gets(a); n=strlen(a); if(n<=1) { printf("please enter a valid string :) "); exit(0); } label : for(i=0;i<=n-2;++i) { ctr=0; printf("\n"); printf("%c",a[0]); for(j=i+1;j<=n-1;j++) { printf("%c",a[j]); ctr++; } if(ctr!=n-1) //while(ctr!=n-1) { st=i+1; … | |
This program displays all possible permutations of the string entered. say if u enter "abc" as input string the possible permutations would be displayed as ......................... abc acb bca bac cab cba .......................... | |
Re: written by dileep basam .. ****************************************** [code=c] #include <stdio.h> #include <stdlib.h> #include <conio.h> #include <string.h> main() { int i,counter=0,flag=0; char uid[25],pwd[25],s_uid[][25]={"11user1","12user2","13user3"}; char s_pwd[][25]={"Pwd1","Pwd2","Pwd3"},ch='a';/*dummy character in ch */ clrscr(); printf("\n Enter the user id : "); scanf("%s",uid); printf("\n Enter the password : "); i=0; while(1) { ch=getch(); if(ch==13) break; else if(ch==8) … | |
Re: install active perl dude... and u will get wonderful documentation along with it ... u can easily trigger u r learning using this documentation. U can download activer perl from somewebsite...(google it).... its a free ware :) gud luck :) |
The End.