12.07.2015 Views

C++ - VideoTutorials-bg.com

C++ - VideoTutorials-bg.com

C++ - VideoTutorials-bg.com

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

{LList l1;l.IterStart();elem *p = l.Iter();while (p){if (pred(p->inf)) l1.ToEnd(p->inf);p = p->link;}return l1;}int plus(int a, int b){return a + b;}bool even(int x){return x%2 == 0;}int cube(int x){return x*x*x;}void main(){LList m, n;int k; cin >> k;for (int j = 1; j a;m.ToEnd(a);}m.print();n = map(cube, filter(even, m));n.print();cout

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!