after using the search and everything, I tried to write my own little code that compares 2 strings.
#include <iostream>
using namespace std;
int main()
{
char stringa[12];
char stringb[13];
cout << "enter the data for string a " ;
cin >> stringa;
cout << "enter the data for string b " ;
cin >> stringb;
if (stringa == stringb)
{
cout << "Match" << endl;
}
else
{
cout << "No match" << endl;
}
return 0;
}
but for some reason it always returns no match!