HELP

Is there a way to check if a certain char appears at the end of an input. For example if someone enters 33566$, how would you catch the '$' and store it into a char variable .
1
2
3
4
5
int a;
char b;

std::cin >> a;
b = std::cin.peek();
Topic archived. No new replies allowed.