Advertisement
nickmcski

Untitled

Oct 28th, 2016
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.51 KB | None | 0 0
  1. /*
  2.  * Main.cpp
  3.  *
  4.  *  Created on: Oct 27, 2016
  5.  *      Author: 505666
  6.  */
  7.  
  8. #include <iostream>
  9. #include <cstdio>
  10. #include <string.h>
  11. using namespace std;
  12.  
  13. int main(){
  14.     char name[50];
  15.  
  16.     while(true){
  17.         cout << "Please enter the password: ";
  18.         cin >> name;
  19.         if(strcmp(name,"123fdsh") == 0){
  20.             cout << "Correct! The flag is" << endl;
  21.             cout << "6102616189" << endl;
  22.             cout << "press any key to continue...";
  23.             cin >> name;
  24.             return 0;
  25.         }else{
  26.             cout << "Wrong " << endl;
  27.         }
  28.     }
  29.     return 0;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement