Code for the project presentation

Code for the project presentation:



#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>

#define TEXTER 4

char texten[TEXTER][255] = {
"Wake up, Matrix...",
"They are coming...",
"Follow the room edges...",
"Knock knock Matrix..."
};

int main(void){
int i,j = 0;
for(i=0;i < TEXTER;i++)
{
j = 0;
while(texten[i][j] != 0)
{
printf("%c", texten[i][j]);
fflush(stdout);
usleep(300000);
j++;
}
usleep(2000000);
printf("\n");
fflush(stdout);
}
}

}

Leave a Reply

Your email address will not be published. Required fields are marked *