Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <windows.h>
- using namespace std;
- int main()
- {
- string odp;
- int pkt=0;
- cout<<"1. Instrukcja wyjscia to:"<<endl;
- cout<<"a) return"<<endl;
- cout<<"b) cin"<<endl;
- cout<<"c) cout"<<endl;
- cout<<"Twoja odpowiedz: ";
- cin>>odp;
- if(odp=="c")
- {
- cout<<"Dobrze!";
- pkt++;
- }
- else
- {
- cout<<"Chodzilo o cout"<<endl;
- }
- Sleep(3000);
- system("cls");
- // http://cpp0x.pl/forum/temat/?id=10096
- // dzwiek cout<<"\a"; lub beep()
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement