- /* PROGRAMME EN C SOUS DOS TURBO C++2 DEVC++4
- ecrit le 18-01-2003 par cmarsc
- defilement d'un cadre */
-
- #include <stdlib.h>
- #include <stdio.h>
- #include <string.h>
- #include <time.h>
- #include <conio.c> /* <conio.h> turbo c++ */
-
-
- #define VITESSE 50 /* turbo c++ 300 */
- void effet (void);
-
- int main(void)
- {
- clrscr();
- effet();
- getch();
- return 0;
-
- } /* fin de main */
-
-
- void effet (void) {
- const char *L = " Û.....Û.....Û.....Û.....Û.....Û.....Û.....Û.....Û.....Û.....Û.....Û.....Û.....Û.....Û";
-
-
- int a,b,c,i;
- time_t t;
- textcolor(LIGHTGREEN);
- while ( !kbhit() ) {
-
- textcolor(LIGHTCYAN);
- time(&t);
- gotoxy (27,12);
- cprintf ("%s", ctime(&t));
-
- textcolor(LIGHTGREEN);
- for (a = 1; a < 6; a++) {
- /* afficher horizontalement */
- gotoxy (1, 1);
- cprintf ("%80.80s",L + a);
-
- gotoxy (1, 24);
- cprintf ("%80.80s ", (L +6) - a );
-
- /* afficher verticalement */
- for (b = 2; b <= 21; b++) {
- c = (a + b) % 4;
- if (c == 1) {
- /* caractere ASCII 219 : Û */
- gotoxy (80,1+ b);
- cprintf ("Û");
- gotoxy (1, 24-b);
- cprintf ("Û");
-
- } else {
-
- gotoxy (80,1+ b);
- cprintf ("%1c",'\0');
- gotoxy (1, 24 - b);
- cprintf ("%1c",'\0');
-
- } /* fin de if (c == 1) */
-
- /* ralentir */
- for (i = 0; i < VITESSE; i++) {
- gotoxy (1,25);
- cprintf ("%1c",'\0');
- } /* fin de for (i...) */
-
- }/* fin de for (b...) */
-
- } /* fin de for (a...) */
-
- } /* fin de while ( !kbhit() ) */
-
- } /* fin de la fonction */
/* PROGRAMME EN C SOUS DOS TURBO C++2 DEVC++4
ecrit le 18-01-2003 par cmarsc
defilement d'un cadre */
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <conio.c> /* <conio.h> turbo c++ */
#define VITESSE 50 /* turbo c++ 300 */
void effet (void);
int main(void)
{
clrscr();
effet();
getch();
return 0;
} /* fin de main */
void effet (void) {
const char *L = " Û.....Û.....Û.....Û.....Û.....Û.....Û.....Û.....Û.....Û.....Û.....Û.....Û.....Û.....Û";
int a,b,c,i;
time_t t;
textcolor(LIGHTGREEN);
while ( !kbhit() ) {
textcolor(LIGHTCYAN);
time(&t);
gotoxy (27,12);
cprintf ("%s", ctime(&t));
textcolor(LIGHTGREEN);
for (a = 1; a < 6; a++) {
/* afficher horizontalement */
gotoxy (1, 1);
cprintf ("%80.80s",L + a);
gotoxy (1, 24);
cprintf ("%80.80s ", (L +6) - a );
/* afficher verticalement */
for (b = 2; b <= 21; b++) {
c = (a + b) % 4;
if (c == 1) {
/* caractere ASCII 219 : Û */
gotoxy (80,1+ b);
cprintf ("Û");
gotoxy (1, 24-b);
cprintf ("Û");
} else {
gotoxy (80,1+ b);
cprintf ("%1c",'\0');
gotoxy (1, 24 - b);
cprintf ("%1c",'\0');
} /* fin de if (c == 1) */
/* ralentir */
for (i = 0; i < VITESSE; i++) {
gotoxy (1,25);
cprintf ("%1c",'\0');
} /* fin de for (i...) */
}/* fin de for (b...) */
} /* fin de for (a...) */
} /* fin de while ( !kbhit() ) */
} /* fin de la fonction */