#include<iostream.h>
#include<conio.h>
#include<string.h>
#include<stdio.h>
void main()
{char a[100],b;
int c,d=0,e;
gets(a);
cout<<"enter the string to be found out";
cin>>b;
for(c=0;c<=strlen(a)-1;c++)
{if(a[c]==b)
d++;
}
if(d==0)
cout<<"char not found";
else
cout<<"char found";
getch();
}
i hope this works....have a nice time....