Różnice między wybraną wersją a wersją aktualną.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
count_count_if [2008/12/11 18:30] abartcza |
count_count_if [2008/12/11 21:35] abartcza |
||
---|---|---|---|
Linia 8: | Linia 8: | ||
===== Opis algorytmu count ===== | ===== Opis algorytmu count ===== | ||
- | === Deklaracja algorytmu count === | + | === Definicja algorytmu count === |
<code cpp> template <class InputIterator, class T> | <code cpp> template <class InputIterator, class T> | ||
ptrdiff_t count ( InputIterator first, InputIterator last, const T& value ) | ptrdiff_t count ( InputIterator first, InputIterator last, const T& value ) | ||
Linia 74: | Linia 74: | ||
===== Opis algorytmu count_if ===== | ===== Opis algorytmu count_if ===== | ||
- | === Deklaracja algorytmu count_if === | + | === Definicja algorytmu count_if === |
<code cpp> template <class InputIterator, class Predicate> | <code cpp> template <class InputIterator, class Predicate> | ||
ptrdiff_t count_if ( InputIterator first, InputIterator last, Predicate pred ) | ptrdiff_t count_if ( InputIterator first, InputIterator last, Predicate pred ) | ||
Linia 167: | Linia 167: | ||
===== Przykładowy program wykorzystujący algorytmy count i count_if ===== | ===== Przykładowy program wykorzystujący algorytmy count i count_if ===== | ||
- | {{count_count_if.cpp}} | + | {{count_count_if2.cpp}} |
--- //[[master.bartczak@gmail.com|Adam Bartczak 5TIZ]]// | --- //[[master.bartczak@gmail.com|Adam Bartczak 5TIZ]]// |