How do you get your code to read multiple inputs

cnoobs (6)
So I have to write a code for my C++ class, and I am having a problem trying to figure out how to get my code to read multiple int values. This is what my code should look like

Enter two times in military format (e.g., 1730 1520): 1730 1520
[1520<1730]
Enter two times in military format (e.g., 1730 1520): 1520 1730
[1520<1730]
Enter two times in military format (e.g., 1730 1520): 1730 1730
[1730==1730]
Enter two times in military format (e.g., 1730 1520): 1760 1520
1760: [INVALID TIME 1]
Enter two times in military format (e.g., 1730 1520): twelve 2
[INVALID NUMERIC INPUT]
SamuelAdams (320)
1
2
3
4
5
int a=0;
int b=0;
	cout << "Please enter 2 times: ";
	cin >> a >> b;
	cout << a << " " << b << endl;
Registered users can post here. Sign in or register to post.