If it's std::cin you're using I would use a dummychar:
1 2 3 4 5
char dummychar;
int x,y,z;
std::cout << "Please enter x,y,z";
std::cin >> x >> dummychar >> y >> dummychar >> z;
Perhaps someone else would have a more elegant solution.
There's also scanf(), but that's not really standard c++ so it is advised against.
Edit: Hmm, i didn't see your added program before - do you mean they would enter comma's within the numbers? Because then it gets complicated, as the two values separated by a comma are in fact one and the same number, but c++ won't recognise it as such as a comma is not a numeric character.
Also, please don't start using caps because someone asks you a bit more information - in this case I may have given you wrong information because your brief problem description was inaccurate, so don't blame others for that.
This article: http://www.cplusplus.com/articles/D9j2Nwbp/ shows how to convert a string containing comma's to an int. That would require some knowledge of std::string however : http://www.cplusplus.com/doc/tutorial/variables/