Hint for getting a valid value

  • Use a priming read with an event controlled loop
  • See the class examples
  • As long as the value is not valid
    • Display an error message
    • Re-get the number


This topic: CenterForComputing > WebHome > Syllabi > SyllabiFall2024 > CSC121SylF2024 > CSC121F2024Lab04 > CSC121F2024Lab04Hint03
Topic revision: r1 - 2024-06-10 - CathyBareiss
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback