No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
3 Posted Topics
HI,,,, [CODE] #include<iostream.h> #include<conio.h> void main() {int a[100],b,c,d,e; cout<<"enter how many elements u want to enter"; cin>>b; for(c=1;c<=b;c++) {cin>>a[c]; } //this is for entering the data in an array format clrscr(); for(d=1;d<=b;d++) { cout<<a[d]; } //displaying the output which is stored in the arrays getch(); [/CODE] i hope this might …
[CODE]#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(); }[/CODE] i hope this works....have a nice time....
The End.
srivairam