Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Main.cpp
- *
- * Created on: Oct 27, 2016
- * Author: 505666
- */
- #include <iostream>
- #include <cstdio>
- #include <string.h>
- using namespace std;
- int main(){
- char name[50];
- while(true){
- cout << "Please enter the password: ";
- cin >> name;
- if(strcmp(name,"123fdsh") == 0){
- cout << "Correct! The flag is" << endl;
- cout << "6102616189" << endl;
- cout << "press any key to continue...";
- cin >> name;
- return 0;
- }else{
- cout << "Wrong " << endl;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement