Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ login

#include<iostream>
int main() {
  std::cout << "Welcome, Enter the password
";
  std::string tempVar, password = "iloveu";
  while(true) {
    std::cin >> tempVar;
    if(tempVar != password) std::cout << "incorrect, well try again:)
";
    else break;
  }
  std::cout << "uhhh i can't, i love u too... ♥♥
";
}
 
PREVIOUS NEXT
Tagged: #login
ADD COMMENT
Topic
Name
5+8 =