Can we use a data type as a condition in C++?
For example, if a user enters a number in a string input user prompt, it executes a certain set of instructions(code). Because when I enter a number instead of a character in the terminal, it skips all cin inputs and keeps printing cout until the end of the code.