Hello, I am trying to make a little program where you have to guess the number the computer is thinking of. However, at the if statement it showing me an error, could someone help please?
#include <iostream>
usingnamespace std;
int main()
{
int a;
int b = 7;
cout <<"Can you guess the number I am thinking between 1-10?";
if(cin >>a == b)
cout <<"Well done, you are correct!";
else
cout <<"You are incorrect!";
return 0;
}