Retrieving User Input

Hey guys.

1
2
3
4
5
6
7
8
void main(){
    while(true){
        cmessage cInput(GetInput());
        ParseInput(cInput);
        continue;
    }
    return;
}


the syntax isn't really important here, because my question is this; Is there a better way to get input from the user over and over again? My solution was to simply put the input handlers in a while loop, that way everything gets destroyed by the time the user enters something else.
Is/Are there alternatives to my method that are perhaps more commonplace among the programming zeitgeist?

Thanks for reading guys.
You tried the *<conio.h> header?

*The conio.h is no longer a standard header file, or at least most of its functions. Not recommended.

Aceix.
Topic archived. No new replies allowed.