C programming

Tuesday, January 13, 2009

//Decodeing program #include #include void main() { clrscr(); int p=0,i=0,j,chln[30]; char str[50],ch[30]; gets(str); while(str[i]!='\0') { if(str[i]=='0') { i++;continue; } j=0; ch[p]=str[i]; chln[p]=0; while(str[j]!='\0') { if(ch[p]==str[j]) { chln[p]=chln[p]+1; str[j]='0'; } j++; } p++;i++; } for(i=0;i printf("%c%d",ch[i],chln[i]); getch(); }

0 comments:

Visitors

PlugIn.ws - Free Hit Counter, Web Site Statistics, Traffic Analysis

  © Blogger template Leaving by Ourblogtemplates.com 2008

Back to TOP