Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~59 People Reached
Favorite Forums
Favorite Tags
c++ x 1
Member Avatar for thestudent

#include<iostream.h> #include<conio.h> int lsearch(int[],int,int); int main() { int ar[50],n,item,index; cout<<"enter the size"; cin>>n; cout<<"enter the array\n"; for(int i=0;i<n;i++) cin>>ar[i]; char ch ='y'; while (ch=='y') { cout<<"enter the no. to be deleted\n"; cin>>item; index=lsearch(ar,n,item); if(index!=-1) ar[index]=0; else {cout<<"sorry!no such element found";} cout<<"the deleted element is shown as (0)\n"; for(int i=0;i<n;i++) cout<<ar[i]<<"\n"; …

0
59