Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- //napisz program z uzyciem wskaźników w którym użytkownik podaje swoje nazwisko bez polskich znaków
- //a program wypisuje nazwisko literka po literce
- char nazwisko[64];
- cin>>nazwisko;
- char *w;
- w=nazwisko;
- while(*w)//dopuki jest tekst
- {
- cout<<*w<<".";
- *w++;
- }
- cout <<" ";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement