Skip to content

About stl exercise #454

Open
Open
@chavid

Description

@chavid

As currently written, the students starts with std::generate, which is complex because
of the need of some internal persistent state. Several solutions:

  • find another generation algorithm which do not require internal state.
    why not directly random values ?
  • move it as intermediary/advanced later step.
    By the way, I strongly disagree with the current solution, based on an object-function class. You will frigthen beginners and let them think that the good old code is better ! It is far from perfect, but one can avoid this with an internal static int, or capture by reference an external int.
    Or we should declare as a requirement the knowledge of object-functions ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions