XodoX 0 Junior Poster in Training

Hi, how do I exactly do this?

1) Read an integer from the input. (Reading will automatically stop after the first non-digit character, accounting for possible sign characters.)
2) DO read the next character WHILE the read character is whitespace, then validate it as an operator and store it.
3) WHILE there is any remaining whitespace, read and discard those characters.
4) go to 1.

It's supposed to check lines of input. How would I do the do-while loop here? I don't understand how you use the loop to READ the line of input.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.