char and int input with a space in between

How to take input of a char and int separated by space. Please help.

cin / scanf documentations.

char a; int b;

C++(iostream)

cin >> a >> b;

C/C++(stdio.h/cstdio)

scanf("%c %d", &a, &b);

But, look here, or here for better understanding of what you are doing.

//