Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  Haslo
Language: C/C++
Code:
#include <iostream>

#include <string>

using namespace std;
/*  Login to : mojlogin
    Haslo : mojehaslo
*/
int main()
{
    
    string login,haslo;
    string pass = "mojehaslo";

    cout << "Podaj haslo : "<<endl;
    cin >> haslo;
   
  
                        if (haslo==pass)
                      {
                                    
                                            cout << "Haslo zostalo przyjete.  "<<endl;
                                            cout << "Podpowiedz" << endl;
                                            cin.get();
                                            cin.get();
                                            return 0;
                                            }
                                            else
                                            {
                                                
                                                cout << "Zle haslo... " <<endl<<"Aplikacja zostanie zamknieta";
                                                cin.get();
                                                cin.get();
                                                return 0;
                                                }
}                                                 
          
Comments: