Hello everyone, I'm new to C++ and I'm playing around with code. I've been trying to figure out how to make a user input accept a blank answer instead of continually nagging the user for one. This is my code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#include <iostream>
#include <conio.h>
#include <ctype.h>
#include <string>
usingnamespace std;
int main()
{
int x
std::cin >> x;
; printf("You Entered: %d\n", x)
; printf("Press any key to continue . . . ")
; _getch()
; return 0;
}
On an unrelated topic, the preview button for submitting a question has a problem, where nothing shows up in the box.