Advertisement
Gireada

POO 2 3

Mar 8th, 2017
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.44 KB | None | 0 0
  1. #include <iostream>
  2. #include <conio.h>
  3.  
  4. char a[100];
  5.  
  6. using namespace std;
  7.  
  8. #undef endl
  9. #define rand_nou endl
  10.  
  11. #define da_bip "\a"
  12.  
  13. #define cere_parola a
  14.  
  15. int main()
  16. {
  17.     cout << "test" << rand_nou << "test";
  18.     cout << da_bip<<rand_nou;
  19.     cin >> cere_parola;
  20.     if (strcmp(cere_parola, "test") == 0) cout << "Parola corecta"<<rand_nou;
  21.     else
  22.     {
  23.         cout << "Parola gresita" << da_bip<<rand_nou;
  24.     }
  25.     system("pause");
  26.     return 0;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement