#include <iostream>
#include <conio.h>
#include <string>
using namespace std;
int main()
{
string Jeden = "moderator jednego z forow";
string Dwa(Jeden, 0, 5);
string Trzy = "organizacja jest prosta jak wakacje";
string Cztery(Trzy, 4, 7);
string Piec = Dwa + Cztery;
string Szesc;
cout <<"Prosze o podanie hasla: ";
cin >> Szesc;
if(Szesc == Piec)
{
cout <<"Haslo jest poprawne! Gratulacje." << endl;
getch();
}
else
{
cout <<"Haslo jest niepoprawne! Sprobuj ponownie." << endl;
return main();
}
}