Small BASIC
A programming language created by Microsoft that serves a stepping stone for beginners from block-based coding languages to more complex text-based languages.
280 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I'm making a silly little text-based "VN" in c++, and have run in to a small snag. I want to use while loops to catch errors, and have tried using cin.ignore(numeric_limits<streamsize>::max(), '\n') to only have the error message display ONCE. Otherwise, the error message will display for every letter that is an incorrect input. Can anyone help me with this? Thanks so much!
To eliminate the compile errors shown in your pic,
add the following macro before the windows.h
include statement:
#define NOMINMAX
#include <windows.h>