Assignment for Uni wont work?

Hi guys,

Ive got an assignment for uni for tomorrow and im seriously lost.

Im quite new to C++ but this just doesnt make any sense to me.
Its a .pdf which we have to "follow" and complete so I uploaded it here if anyone would be so kind as to take a look at it and tell me what im doing wrong.

Here is a link to the assignment and the required engine files:

https://docs.google.com/file/d/0B5vvJJlqo-NlTFJITS04VU1nYTA/edit?usp=sharing

Its a .rar so im not sure if thats allowed here so if any doubts I could upload them individually too.


Basically it tells me to replace some "X"´s with "NewProjectLab" which I did and then to enter my Name and Group which I also did but when I rebuild it and run it (using F5) my window still says "Name - Group" etc...

Im not sure what im doing wrong.

Also my second assignment tells me to rename my project and then to add

1
2
3
  Navigate to the method ExploreAndDraw::GameInitialize. Just after the
opening brace, on a new line, type the statement OutputDebugString("The
game is being initialized\n");


Im not sure where to put that much less when I do put it where I "think" it belongs it just returns a list of errors so if someone could help me out that would really really really be appreciated.

Thank you!
closed account (o3hC5Di1)
Hi there,

Welcome to the forums. Unfortunately I don't have the time to look through the whole of your assignment right now, but if you could perhaps clarify your first problem a little bit that would be helpful:

Basically it tells me to replace some "X"´s with "NewProjectLab" which I did and then to enter my Name and Group which I also did but when I rebuild it and run it (using F5) my window still says "Name - Group" etc...


Could you perhaps copy the relevant code into this thread and be a little bit more specific about what needs changing?

As for:
Navigate to the method ExploreAndDraw::GameInitialize. Just after the
opening brace, on a new line, type the statement OutputDebugString("The
game is being initialized\n");


Somewhere in a .cpp file, possibly called "exploreanddraw.cpp" you should find the function definition of ExploreAndDraw::GameInitialize. It should look similar to this:

1
2
3
4
5
void ExploreAndDraw::GameInitialize (/*[ossibly some parameters here*/)
{ //<-- this is the opening brace the assignment means
    OutputDebugString("The game is being initialized\n"); //put that here
    //rest of this function
}


Hope that helps.

All the best,
NwN
Last edited on
Hi,

Thanks a bunch for your help. I eventually figured it out with the help from a friend but im sure ill need some more help soon.

Thank you for the kind reply though.

Topic archived. No new replies allowed.