Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <conio.h>
- #include <iomanip>
- using namespace std;
- char parola[20];
- istream& da_parola(istream& cin)
- {
- cout << "Introduceti parola";
- cin >> parola;
- return cin;
- }
- ostream& da_bip(ostream& cout)
- {
- return cout <<'\a';
- }
- int main()
- {
- cin >> da_parola;
- cout << endl;
- if (strcmp(parola, "parola") == 0)
- cout << "Corect";
- else
- cout << da_bip << endl;
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement