Click to See Complete Forum and Search --> : C++ -- cin


RHLinuxNewbie
02-21-2004, 04:33 PM
I almost NEVER use cin, so this question may seem foolish. Anyhow, I need to accept input from the console with a maximum of 4 passed parameters, but only the first is required. The first is a character, second and third are integers, and the last is a character.
Such that, "A 1 2 X", "A 1 2", "A 1", and "A" are all acceptable, but "" is not.
I can't find this on Google, but I seem to remember doing something similar years ago.
Thanks for any replies.