comparing array of chars

for some reason using this syntax wont work
1
2
3
4
5
6
7
8
9
char array1[6][15];
char array2[6][15];

cin>>array1[0];

cin>>array2[0];

if(array1[0]==array2[0])
    cout<<"duplicate";
Last edited on
In order to compare C strings you must use strcmp() or stricmp(), or there even might be some other comparing functiosn that I don't recall right now.
simple question, simple answer. Thanks big help.
Topic archived. No new replies allowed.