Exercise 11 Task 1: current

Mario Trageser
Windoof-User
Windoof-User
Beiträge: 40
Registriert: 20. Jul 2013 14:28

Exercise 11 Task 1: current

Beitrag von Mario Trageser » 30. Jan 2018 14:30

Hi,

what is the meaning of the "current" variable in the class "Formula"?

Kind regards,
Mario

Mario Trageser
Windoof-User
Windoof-User
Beiträge: 40
Registriert: 20. Jul 2013 14:28

Re: Exercise 11 Task 1: current

Beitrag von Mario Trageser » 30. Jan 2018 15:52

I found the solution to my question in the description of task 2.

However, the current raises a new question:
How should chooseNextPlaceholder work?
Should it find the first placeholder, or the first that is found after the current.
If the latter is the case, what should happen, when we found the last placeholder, and call chooseNextPlaceholder again?

meichholz
Endlosschleifenbastler
Endlosschleifenbastler
Beiträge: 167
Registriert: 30. Mär 2016 08:28

Re: Exercise 11 Task 1: current

Beitrag von meichholz » 1. Feb 2018 13:24

Hi,

it should find the first placeholder starting from the root node.

Best,
Matthias

Antworten

Zurück zu „Archiv“