GLProgramming.com

home :: about :: development guides :: irc :: forums :: search :: paste :: links :: contribute :: code dump

-> Click here to learn how to get live help <-


New Paste :: Recent Pastes:: Add Line Numbers


A Paste by Anonymous
double getPos() {
    double in;
    cin >> in;
    while( in < 0 ) {
        cout << "Please enter a POSITIVE number: ";
        cin >> in;
    }
    return in;
}