Szkoły ETE im. Alberta Schweitzera

  • Increase font size
  • Default font size
  • Decrease font size
Start O szkole
Email Drukuj PDF

#include <cstdlib>
#include <iostream>
#include <conio.h>

using namespace std;

int main()
{
char haslo[24],c;
char haslop[24] = "szkolyete";

int z;
bool p;
do
{
z=0;
p=0;

cout << "Podaj haslo: " << endl;

while((c = getch()) != 13)
{
cout << "*";
haslo[z++]=c;
}

for(int i=0;i<z;i++)
{
if (haslo[i] !=haslop[i]) p=1;

}

if(!p)cout << endl<<"Haslo jest poprawne"<<endl;
else cout <<endl<< "Haslo jest bledne"<<endl;
}
while(p==1);
getch();
return 0;
}

Poprawiony: wtorek, 14 listopada 2017 16:24  

Social media

facebook3

youtube3

instagram3

Licznik odwiedzin

Dzisiaj319
Miesiąc2403
Wszystkie574345

Currently are 13 guests online

Do końca roku szkolnego pozostało
...