I have this line of code
if(strcmp(ob[i].getBrand(), ob[j].getBrand()) > 0)
and I get this error
error C2664: \'strcm
Simply use .c_str() to convert a string to char array, then you are able to use strcmp().
.c_str()
string
But in your case, use > is better :)
>