Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- /* int tab2D[2][3]={{1,2,3},{4,5,6}};
- cout<<tab2D[0][1]<<endl;
- tab2D[0][1]=8;
- cout<<tab2D[0][1]<<endl;
- //Wskazniki
- int (*ws)[3];
- ws = tab2D;
- cout<<*(*(ws+0)+1)<<endl;*/
- /*char chTab[4][10]={"jeden",{'d','w','a'},{"trzy"}};
- cout<<"Wpisz slowo..."<<endl;
- cin>>chTab[3];
- for(int i=0; i<4; i++)
- {
- cout<<chTab[i]<<endl;
- }
- int x,z;
- cout<<"Podaj numer wiersza i kolumny"<<endl;
- cin>>x>>z;
- cout<<endl;
- cout<<chTab[x][z]<<endl;*/
- char Osoby[3][2][10];
- cout<<endl<<"Podaj imie i nazwisko dla trze osob..."<<endl;
- for(int i=0;i<3;i++)
- {
- cin>>Osoby[i][0];
- cin>>Osoby[i][i];
- }
- cout<<endl;
- for(int i=0; i<3; i++)
- {
- cout<<Osoby[i][0]<<endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement