#include<stdio.h>
#include<conio.h>
#include<conio.h>
#include<stdlib.h>
#include<string.h>
{
void main ()
char *st;
int i, l, a[256];
st=(char *)malloc(sizeof(char)*100);
clrscr ();
printf("Enter any line of text: ");
gets (st);
for(i=0; i<256; i++)
clrscr ();
printf("Enter any line of text: ");
gets (st);
for(i=0; i<256; i++)
a[i]=0;
l=strlen (st);
for(i=0;i<1;i++)
a[*(st+i)++;
for(i=;i<256;i++)
if(a[i]>0)
printf("%c=%2d\t", i, a[i]);
getch();
}
No comments:
Post a Comment