C++ help

or maybe he forgot a reinterpret_cast(&i) :^)

>Ugly pointer manipulation and naked new/delete is not something you show on the first lesson.
>The whole community is trying to move away from that...

Pointers are one of the first things you need to teach with both C and C++. They are one of the primitive building blocks for constructing other types. Even if std::unique_ptr is better most of the time, if you want to improve understanding, it makes sense to teach the primitive from which the abstraction is constructed. It will also serve to demonstrate WHY we use the abstraction over the primitive.

setWord is defined by me as part of the exercise but any help you can give would be ace (if you can't tell I'm very new to c++):
in the class it is defined as
void setWord(string wordIn);
and later is written as
void Word::setWord(string wordIn) {
word = wordIn;
}

fucking email your prof and ask for clarification then.