hi, i have a problem copying two struct data.
struct Details {
public:
char Title[20];
char Artist[20];
int noSongs;
float Price;
char Category[20];
};
Details cd[MAX];
Details cdTEMP[MAX];
i used
cd[i].Title = cdTEMP[i].Title;
cd[i]Artist = cdTEMP[i].Artist;
and so on in a FOR loop...
the compiler gives me an error
" ISO C++ forbids assignment of arrays"
can anybody help??
struct Details {
public:
char Title[20];
char Artist[20];
int noSongs;
float Price;
char Category[20];
};
Details cd[MAX];
Details cdTEMP[MAX];
i used
cd[i].Title = cdTEMP[i].Title;
cd[i]Artist = cdTEMP[i].Artist;
and so on in a FOR loop...
the compiler gives me an error
" ISO C++ forbids assignment of arrays"
can anybody help??
Comment