1. المدير العام

    المدير العام أدارة موقع أكتب كود

    كود لأنشاء حساب على الفيسبوك
    كود:
    #include <iostream>
    #include <string>
    using namespace std;
    int main()
    {
     int facebook, creat = 1, login = 2, age;
     string user, pass, pass2, pass3, name, country, email, email2;
     facebook = login && creat;
     cout << "Welcome to in Facebook \n1-Creat Account\n2-Login\n";
     cin >> facebook;
     switch (facebook)
     {
     case 1:
      cout << "\tEnter the following data\n\n";
      cout << "Your name \n";
      cin >> name;
      cout << "ENTER Your age \n";
      cin >> age;
      cout << "Where are you from\n";
      cin >> country;
      cout << "Enter E-mail\n";
      cin >> email;
    
      cout << "Enter password \n";
      cin >> pass;
      while (pass != pass2)
      {
       cout << "again Enter password \n";
       cin >> pass2;
       if (pass == pass2)
       {
        cout << "Your Facebook account has been \nsuccessfully created\n";
       }
       else
       {
        cout << "Password is wrong \n";
       }
      } //\n\nAgain New ;
      cout << "Do you want to access your Facebook account \n Enter 2-login \n";
      cin >> facebook;
      while (pass2 != pass3 && email != email2)
      {
      case 2:
       cout << "Enter E-mail\n";
       cin >> email2;
    
       cout << "Enter the password \n";
       cin >> pass3;
       if (pass2 == pass3 && email == email2)
       {
        cout << "open\n";
       }
       else
       {
        cout << "password OR E-mail  WRONG\n try again ";
       }
      }
     }
    
     return 0;
    }
     
جاري تحميل الصفحة...