what statement will get this to work

i have built a timer setting in my player class

each does the job they need to

player.SetTimer() has set the starting time

player.LoseTimer() subtracts to zero like i ask it to

player.GetTimer() will easily display the total

my issue is trying get it to move to a neww cpp file when the total is 0;

i tested it and it diplays a total of zero through the GetTimer function

however it won't load the cpp wether it is a

while(player.GetTimer() < 1)
{
final();
}
or an if statement.... it just keeps running

any help to rectify this will be helpful, however i need to get it working when i have to hand it in tomorrow by no later the 11:59 pm

it is the last funciton i need to get working
Is final() defined in your other C++ file and declared in a header file that both your main file and your second file share?

-Albatross
final ();is declared as a prototype in my globals.h

globals.h is declared in my library.h, along with std_lib_facilities.h, player.h, and <time.h>

Final.cpp is the file that goes through specific bools to display one of 8 specific endings

final itself is declared as a bool
Topic archived. No new replies allowed.