Advertisement
Guest User

Untitled

a guest
Oct 17th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.57 KB | None | 0 0
  1. #include <iostream>
  2. #include <windows.h>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.     string odp;
  9.     int pkt=0;
  10.     cout<<"1. Instrukcja wyjscia to:"<<endl;
  11.     cout<<"a) return"<<endl;
  12.     cout<<"b) cin"<<endl;
  13.     cout<<"c) cout"<<endl;
  14.     cout<<"Twoja odpowiedz: ";
  15.     cin>>odp;
  16.  
  17.     if(odp=="c")
  18.     {
  19.         cout<<"Dobrze!";
  20.         pkt++;
  21.     }
  22.     else
  23.     {
  24.         cout<<"Chodzilo o cout"<<endl;
  25.     }
  26.  
  27.     Sleep(3000);
  28.     system("cls");
  29.     // http://cpp0x.pl/forum/temat/?id=10096
  30.     // dzwiek cout<<"\a"; lub beep()
  31.  
  32.  
  33.  
  34.     return 0;
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement