Advertisement
Guest User

Untitled

a guest
Mar 24th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstdlib>
  3. #include <conio.h>
  4.  
  5. using namespace std;
  6. int ile, i;
  7.  
  8. int main ()
  9. {
  10.  
  11.  
  12. cout << "Ile chcesz miec wiewiorek" << endl;
  13. cin >> ile;
  14.  
  15. string *tablica ;
  16. tablica = new string [ile] ;
  17.  
  18. for (i=0; i<ile ; i++)
  19. {
  20. cout << "Nazwij wiewiorke nr" << i+1 << "." << endl;
  21. cin >> tablica[ile-1];
  22. }
  23. cout << "---" << endl;
  24. cout << tablica[ile];
  25.  
  26.  
  27.  
  28. return 0 ;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement