I have to read stdin for two numbers separated by comma using standard C++ library (no boost). So user will be typing numbers in console in the format ,
Examples
2,3 3,10
If it was for C, I could do scanf("%d,%d", i, j); How do I do it in C++? cin be default uses space as separator, how do I change the separator for cin ?