Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <map>
- using namespace std;
- /* run this program using the console pauser or add your own getch, system("pause") or input loop */
- int main(int argc, char** argv) {
- int x;
- x=0;
- do
- {
- cout << "Prosze przycisnac odpowiedni klawisz: \n 1. Dodaj pare do mapy. \n 2. Wyjdz z programu" << endl;
- // cout << "Prosze przycisnac odpowiedni klawisz:" << endl << "1. Dodaj pare do mapy." << endl << "2. Wyjdz z programu" endl;
- cin>>x;
- if(x==1)
- {
- cout << "Jak dorosne będę programistą" << endl;
- map<int, double> mapa;
- for (int i=0; i<10; i++)
- {
- cout << "Podaj wartosc dla klucza" << i+1 << ": " << endl;
- cin >> x;
- }
- }
- }
- while (x!=2);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement