Hello..
Ive written this code which dont work, its jobis simply recieving names from the user in a structure [a] and delete a name that chosen by user, the compiler give me error flag in the line noticed bellow:)
#include <iostream.h>
#include <conio.h>
struct m{
char n[15];
};
void main()
{
m a[50];
char name[15];
int i,size;
cin>>size;
for(i=0;i<size;i++)
{
cout<<"entr elements";
cin>>(a[i]).n;
}
cout<<"enter elment";
cin>>name;
for (int j=0;j<size;j++)
{
if((a[j]).n==name)
for(int c=j; c<size;c++)
((a[c]).n)=((a[c+1]).n); //this is The LINE
}
for(i=0;i<size;i++)
cout<<(a[i]).n<<endl;
getch();
}