Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- char tab[3];
- void randomLetter(char tab[])
- {
- int x=0;
- do
- {
- cout << "Podaj " << x+1 << " literę: ";
- cin >> tab[x];
- x++;
- } while(x<3);
- }
- void showArray(char *tab)
- {
- int y=0;
- do
- {
- cout << tab[y] << endl;
- y++;
- } while(y<3);
- }
- int main()
- {
- randomLetter(tab);
- showArray(tab);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment