fork(2) download
  1. #include <ctime>
  2. #include <iostream>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. time_t t = time(0); // get time now
  8. struct tm * now = localtime( & t );
  9. cout << " YEAAAA..." << endl
  10. << "MY GAME IS STILL WORKING IN " << (now->tm_year + 1900) << " !!"
  11. << endl << endl << "PROGRAMMED IN 1992 etc etc";
  12. }
Success #stdin #stdout 0s 3228KB
stdin
Standard input is empty
stdout
        YEAAAA...
MY GAME IS STILL WORKING IN 2015 !!

PROGRAMMED IN 1992 etc etc