filmov
tv
C+ + Tutorial: how to do input validation using while loops.

Показать описание
I demonstrate how to perform input validation in C++ using a while loop. This is a tutorial for beginners introducing the topic as covered in our textbook.
In other words, we're going to check user input with a while loop.
2:18 ⇒ Theory
3:39 ⇒ Get to the code
Here's the basic algorithm:
Ask for some input
while the input is something we don't like:
Tell the user there something wrong
Ask for the input again
Continue on with the rest of the program
We'll cover the logic, write a sample program, and see what happens if you use if (bad) instead of while (good), a common mistake made by new students. Sample programs are written using Visual Studio 2022.
// Learn More //
C++ Playlist:
while loops:
// Consider supporting this channel in multiple ways
Bitcoin: 177wfkQwzXiC8o2whQMVpSyuWUs95krKYB
In other words, we're going to check user input with a while loop.
2:18 ⇒ Theory
3:39 ⇒ Get to the code
Here's the basic algorithm:
Ask for some input
while the input is something we don't like:
Tell the user there something wrong
Ask for the input again
Continue on with the rest of the program
We'll cover the logic, write a sample program, and see what happens if you use if (bad) instead of while (good), a common mistake made by new students. Sample programs are written using Visual Studio 2022.
// Learn More //
C++ Playlist:
while loops:
// Consider supporting this channel in multiple ways
Bitcoin: 177wfkQwzXiC8o2whQMVpSyuWUs95krKYB
C Programming Tutorial for Beginners
C Tutorial Deutsch | Lerne C in 90 Minuten
C tutorial for beginners 🕹️
C Language Tutorial for Beginners (with Notes & Practice Questions)
C# Tutorial Deutsch (Komplettkurs) - C# Lernen in unter 4 Stunden
C# Tutorial For Beginners - Learn C# Basics in 1 Hour
C Programming Tutorial for Beginners 1 - Introduction to the C programming
C Programming For Beginners | Learn C Programming | C Tutorial For Beginners | Edureka
Segundo Domingo de Adviento Ciclo 'C'/Esquema de cantos.
C Language Tutorial for Beginners (With Notes) 🔥
C Programmieren für Anfänger Tutorial #1 - Einleitung
C# Tutorial - Full Course for Beginners
Programmieren in C Tutorial #01 - Hello World
C++ Tutorial für Anfänger: Lerne C++ in 60 Minuten (deutsch)
C Programming Tutorial | Learn C programming | C language
C# Tutorial | kompletter Kurs für Anfänger
Basics of computer's memory and Getting started: C Programming Tutorial 02
C++ Tutorial for Beginners - Full Course
Writing and executing your first program: C Programming Tutorial 03
Learn Visual Studio Code in 7min (Official Beginner Tutorial)
C++ Tutorial For Beginners | C++ Programming | C++ | C++ Basics | C++ For Beginners | Simplilearn
Programmieren in C Tutorial #00 - Einführung & Codeblocks
C Programming Tutorial for Beginners 28 - C File I/O: Create, Open, Write and Close a File
C Crashkurs Tutorial für Programmierer in ~45 Minuten
Комментарии