Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. #include <iostream>
  2. #include <unistd.h> // untuk fungsi usleep
  3. using namespace std;
  4.  
  5. const char rocket[] =
  6. "           _\n\
  7.          /^\\\n\
  8.          |-|\n\
  9.          | |\n\
  10.          |L|\n\
  11.          |A|\n\
  12.          |P|\n\
  13.          |A|\n\
  14.          |N|\n\
  15.         /| |\\\n\
  16.        / | | \\\n\
  17.       |  | |  |\n\
  18.        `-\"\"\"-`\n\
  19. ";
  20.  
  21. int main()
  22. {
  23.     for (int i = 0; i < 50; i++) cout << endl; // melompat ke bawah konsol
  24.     cout << rocket ;
  25.     int j = 300000;
  26.     for (int i = 0; i < 50; i++) {
  27.         usleep(j); // bergerak lebih cepat,
  28.         j = (int)(j * 0.9); // waktu sleep
  29.         cout << endl; // memindahkan baris roket ke atas
  30.     }
  31.     cout << "Visit http://ifannuddin.com ! " << endl;
  32.     return 0;
  33. }