Lauftext in C



  • Hier mein Code:
    #include <stdio.h>
    #include <conio.h>
    #include <graph.h>
    #define TEMPO 51000000
    #define BIL _clearscreen(_GCLEARSCREEN)
    void main(void)
    {
    unsigned long int i;
    BIL;
    setbuf(stdout,NULL);
    do
    {
    _settextposition(8,8);
    printf(" O O O O O O O O O O");
    for (i = 1; i <= TEMPO; i++);
    _settextposition(8,8);
    printf(" O O O O O O O O O O ");
    for (i = 1; i <= TEMPO; i++);
    _settextposition(8,8);
    printf(" O O O O O O O O O O ");
    for (i = 1; i <= TEMPO; i++);
    _settextposition(8,8);
    printf(" O O O O O O O O O O ");
    for (i = 1; i <= TEMPO; i++);
    _settextposition(8,8);
    printf(" O O O O O O O O O O ");
    for (i = 1; i <= TEMPO; i++);
    _settextposition(8,8);
    printf("O O O O O O O O O O ");
    for (i = 1; i <= TEMPO; i++);
    }while (!kbhit());
    }
    Da der Code eigentlich gar keinen Algorithmus darstellt, soll nun mit Hilfe eines Arrays, einer hexadezimale Ausgangszahl u. Linkschiebeoperatoren ein ordentlicher Algorithmus entwickelt werden !!!
    WER KANN EINER VERZWEIFELTEN HELFEN ???




Anmelden zum Antworten