Terminator Trilogy

int main()
{
    CHuman* Connor = new CHuman();

    char* terminatorModels[] = {"T-800","T-1000","T-X"};

    int years[] = {1984,1994,2004};

    int numberOfMovies=3;

    for(int i=0;iSetTarget(Connor);
        terminator->GoBackInTime(years[i]);
       
        try
        {
            terminator->TerminateTarget();
            break;
        }
        catch(...)
        {
            if(i>0)
                printf("Hasta la vista, baby!");


            delete terminator;
        }

    }

    InitialiseJudgementday();

}
  • Yossan

    CHuman *connor = new CHuman();

    for(int i=0;iSetModel(terminatorModels[i]);
    terminator->SetTarget(connor);
    terminator->GoBackInTime(years[i]);