Well, try adding your loop and repost the code.
That code will always be true, because you only used one equals sign. Which means you are assigning '0' to the variable 'tries', which succeeds, so the statement becomes "if (1)" where 1 is aka 'true'. Use a double equals to compare.
You're also going to want to add newlines to your couts, for readability.
Code:
cout << "Correct" << endl;
// OR
cout << "Correct\n";