getValidResponse
- This is a loop using a priming read and isValid. More is done below (you might need to scroll)
- get a string from the user
- while it is not valid
- state that only valid strings are allowed
- get a string from the user
- return the string
This topic: CenterForComputing
> WebHome >
Syllabi >
CSC121SylS2023 >
CSC121S2023Lab05 > CSC121S2023Lab5H5
Topic revision: r1 - 2023-01-31 - cathybareiss