hi so I'm making a mini bank and I want to have the user put in the email and then once they put it in it clears and then moves to the password I'm having trouble doing that please help.
#include <iostream>
#include <windows.h>
#include <String>
#include <thread>
#include <stdlib.h>
int main() {
int money = 1000000;
std::string password;
std::string email;
std::string Inpassword;
std::string Inemail;
std::cout << ("Welcome to the bank of jack!\n");
Sleep(2000);
std::cout << ("Enter your email: ");
std::cin >> email;
//the user enters the email and then once the user inputs the email the computer clears the text containing the email
Sleep(3000);
std::cout << ("create your password: ");
std::cin >> password;
//user inputs password and then once its pasted the computer clears it
Sleep(1000);
std::cout << ("Account created\n");
Sleep(1000);
//after that the entire terminal is cleared
std::cout << ("Log in\n");
Sleep(1000);
std::cout << ("enter your email\n");
std::cin >> Inemail;
if (Inemail == email) {
std::cout << ("user ") << email << (" located");
}
else {
std::cout << ("incorrect email");
exit(0);
}
}