Advertisement
Guest User

Untitled

a guest
May 17th, 2018
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. #include <iostream>
  2. #include <map>
  3.  
  4.  
  5. using namespace std;
  6.  
  7. /* run this program using the console pauser or add your own getch, system("pause") or input loop */
  8.  
  9. int main(int argc, char** argv) {
  10.  
  11. int x;
  12.  
  13. x=0;
  14.  
  15. do
  16.  
  17. {
  18.  
  19. cout << "Prosze przycisnac odpowiedni klawisz: \n 1. Dodaj pare do mapy. \n 2. Wyjdz z programu" << endl;
  20. // cout << "Prosze przycisnac odpowiedni klawisz:" << endl << "1. Dodaj pare do mapy." << endl << "2. Wyjdz z programu" endl;
  21. cin>>x;
  22.  
  23. if(x==1)
  24.  
  25. {
  26.  
  27. cout << "Jak dorosne będę programistą" << endl;
  28.  
  29. map<int, double> mapa;
  30.  
  31. for (int i=0; i<10; i++)
  32. {
  33.  
  34. cout << "Podaj wartosc dla klucza" << i+1 << ": " << endl;
  35. cin >> x;
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42. }
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49. }
  50.  
  51.  
  52.  
  53.  
  54.  
  55. }
  56.  
  57. while (x!=2);
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72. return 0;
  73. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement