Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- friend istream & operator >>(istream &str, Lista &l){
- elementListy *nowy=new elementListy;
- str>>nowy->wartosc;
- if(l.pierwszy==0){
- l.pierwszy=nowy;
- } else {
- elementListy *tmp=l.pierwszy;
- while(tmp->nastepny!=0){
- tmp=tmp->nastepny;
- }
- tmp->nastepny=nowy;
- nowy->nastepny=0;
- }
- return str;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement