Advertisement
Guest User

Untitled

a guest
Jan 16th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. /* int tab2D[2][3]={{1,2,3},{4,5,6}};
  8. cout<<tab2D[0][1]<<endl;
  9. tab2D[0][1]=8;
  10. cout<<tab2D[0][1]<<endl;
  11.  
  12. //Wskazniki
  13. int (*ws)[3];
  14. ws = tab2D;
  15. cout<<*(*(ws+0)+1)<<endl;*/
  16.  
  17. /*char chTab[4][10]={"jeden",{'d','w','a'},{"trzy"}};
  18. cout<<"Wpisz slowo..."<<endl;
  19. cin>>chTab[3];
  20.  
  21. for(int i=0; i<4; i++)
  22. {
  23. cout<<chTab[i]<<endl;
  24. }
  25. int x,z;
  26. cout<<"Podaj numer wiersza i kolumny"<<endl;
  27. cin>>x>>z;
  28. cout<<endl;
  29. cout<<chTab[x][z]<<endl;*/
  30. char Osoby[3][2][10];
  31. cout<<endl<<"Podaj imie i nazwisko dla trze osob..."<<endl;
  32. for(int i=0;i<3;i++)
  33. {
  34. cin>>Osoby[i][0];
  35. cin>>Osoby[i][i];
  36. }
  37. cout<<endl;
  38. for(int i=0; i<3; i++)
  39. {
  40. cout<<Osoby[i][0]<<endl;
  41. }
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement