VB icon

Follow the white rabbit.

Email
Submitted on: 1/2/2015 1:37:00 PM
By: Jan Walter E. Eustaquio (from psc cd)  
Level: Beginner
User Rating: By 4 Users
Compatibility: C++ (general)
Views: 667
 
     This is just a modification of the source code of the original author. I fixed it so it will look CLOSER to the 1st scene in the THE MATRIX movie, where NEO first appears. This demonstrates the use of DELAY() func... BEST RUN ON FULL SCREEN MODE... note for the author: forgive me for modifying ur code... wel i just corrected it!
 
code:
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
				
//**************************************
// Name: Follow the white rabbit.
// Description:This is just a modification of the source code of the original author. I fixed it so it will look CLOSER to the 1st scene in the THE MATRIX movie, where NEO first appears. This demonstrates the use of DELAY() func... BEST RUN ON FULL SCREEN MODE... note for the author: forgive me for modifying ur code... wel i just corrected it!
// By: Jan Walter E. Eustaquio (from psc cd)
//**************************************

//mtrixneo.cpp - simulates the scene in the matrix movie where in
//neo wakes up and see characters typed in his PC... best run in FULL SCREEN
#include <iostream.h>
#include <stdlib.h>
#include <conio.h>
#include <time.h>
void wait(float seconds);
int main()
{
char MATRIX[]="wake up, Neo... The Matrix has you... Follow the white rabbit. Knock, knock, Neo.";
int i=0;
textcolor(10);
clrscr();
textcolor(10);
while(i!=5){wait(.3); cprintf("%c", MATRIX[i]); i++; }
while(i!=10){wait(.2); cprintf("%c", MATRIX[i]); i++; }
while(i!=13){wait(.2); cprintf("%c", MATRIX[i]); i++; }
while(i!=16){wait(.3); cprintf("%c", MATRIX[i]); i++; }
wait(2);
clrscr();
while(i!=22){wait(.3); cprintf("%c", MATRIX[i]); i++; }
while(i!=28){wait(.2); cprintf("%c", MATRIX[i]); i++; }
while(i!=33){wait(.1); cprintf("%c", MATRIX[i]); i++; }
while(i!=38){wait(.3); cprintf("%c", MATRIX[i]); i++; }
wait(2);
clrscr();
while(i!=43){wait(.3); cprintf("%c", MATRIX[i]); i++; }
while(i!=52){wait(.2); cprintf("%c", MATRIX[i]); i++; }
while(i!=60){wait(.3); cprintf("%c", MATRIX[i]); i++; }
while(i!=63){wait(.2); cprintf("%c", MATRIX[i]); i++; }
wait(2.3);
clrscr();
cprintf("Knock, knock, Neo.");
wait(3);
return 0;
}
void wait(float seconds)
{
clock_t endwait;
endwait = clock () + seconds * CLK_TCK ;
while (clock() < endwait)
{;}
}


Other 3 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Beginner category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments


 There are no comments on this submission.
 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.