Hey,
I've been looking all over for this, but is there a way to cin an integer and ignore any other symbols i enter before or after it?

Like for ex:

int a,b;
cin >>a >>b;

if I enter "(3,4)". a is not 3, and b is not 4. Is there some kind of flag to set cin to only accept integers.