Skip to content

Commit 02f8be9

Browse files
author
tiberius
committed
finished 3.5 (begin()/first())
added project idea for exercise 4
1 parent 90037a7 commit 02f8be9

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

cpp4j/deimuddisnaechstesprojekt.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Steering Behaviors
2+
3+
- 2d Zeichenfläche
4+
- XML-HTTP-Abfrage nach random.org
5+
- Radiobuttons für Auswahl von internem Zufallszahlengenerator vs. random.org
6+
- Speicherung der Einstellung (Anzahl von Vögeln, Radiobutton-Settings)
7+
- aktuelle Position der Vögel
8+
- Konfiguration soll human-readable sein

cpp4j/tree.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,13 @@ template <class T, class Order = Less<T> > class Tree {
4848
}
4949

5050
const iterator first() const {
51-
return begin();
51+
const iterator i = begin();
52+
return iterator (i.m_node, this);
5253
}
5354

5455
const iterator last() const {
55-
return end();
56+
const iterator i = end();
57+
return iterator (i.m_node, this);
5658
}
5759

5860
iterator find(const T& value) {

0 commit comments

Comments
 (0)