How would you convert the following line to c++?

Code:
scanf("a=%d",a);
How does cin handle input like that? Reading in the integer is obvious but is there a way to tell cin to expect the "a=" before that?