Password checker
hi everybody . i am writing a code this one that follows here : #include <iostream> #include <string> using namespace std; int main() { string password; cout << "Sign in" << "\n"; getline(cin,password, '\n'); if (password == "xxxxxxxxxx"){ cout << "access granted" << "\n"; } else { cout << " Access denied ! Bad password." << "\n"; } return 0; } well i need some help here : * i need a loop , so that every time the wrong PW is typed in , the access is denied . * i need to put it in MS VB and make an executable that launches with Windows as i turn the PC on ; in a maximized window , with the 'close window disabled' . I'll be grateful , guys thanks in advance .