* Frank Birbacher:
> * Alf P. Steinbach schrieb:
>> Would you also forbid use of std::cout?
>
> No, because it's too complex for you to implement it as an excercise.
> I'm not a teaching expert, but usually you go throught implementing
> various "small" functions like std::max yourself before using the
> predefined ones. So first implement my_max, then be told there is
> std::max. Am I wrong here?
Not necessarily, people learn in different ways.
But I've always found that students grasp things faster if examples
introduce one concept at a time (or as few as possible).
The question is whether this exercise is intended to teach use of
pointers, where swapping is just something to use them for, or whether
the exercise is intended to teach swapping, where pointers are just
incidental because references haven't been introduced yet.
--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?