0

In the console for C++, how can I make it so when you type your input, and hit enter, the input doesn't show up on the console. Heres my code. Look at this gif gyazo, https://gyazo.com/8ac7196dbf3236d4a55ee1024809a7c9 I don't want that "1" to appear when you press enter. I'm using Code::Blocks by the way.

#include <iostream>
#include <string>
#include <windows.h>

using namespace std;

int main(){

int input;
cout << "I want the number thats underneath this to not show up, but still be inputted." << endl;
cin >> input;

}//main

0 Answers0