Friday, 10 August 2012

while loop in c | check password using while loop example| implement strcmp| chararray in c language

while loop in c | check password using while loop example| implement strcmp| chararray in c language
while loop in c | check password using while loop example| implement strcmp|  #include<stdio.h>#include<conio.h>void main(){void pass();clrscr();pass();printf("\n\nNow you can proceed...........\n");getch();}void pass(){char ar[30],ch;int i=0;printf("\n\nEnter password\n");while(1){ch=getch();if(ch==13)break;else{ar[i]=ch;i++;printf("*");}}ar[i]='\0';if(strcmp(ar,"username")==0)return;else{printf("Invalid...

c graphics | c graphics tutorial| graphics.h | setfillstyle |initgraph

c graphics | c graphics tutorial| graphics.h | setfillstyle |initgraph
C line project folders | in Graphics #include<stdio.h>#include<conio.h>#include<graphics.h>void main(){int gd=DETECT,gm;int i,j;initgraph(&gd,&gm,"");setcolor(BLUE);setfillstyle(SOLID_FILL,RED);i=getmaxx();j=getmaxy();while(1){if(kbhit()){break;}setfillstyle(SOLID_FILL,RED);for(i=10,j=20;i<=300,j<=400;i+=5,j+=10){outtextxy(i/2,j/2,"new...