Lauflicht in C
-
Hallo,
Ich bin schon tagelang am rumprobieren.
Also der Code sieht so aus:#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());
}
Die Aufgabenstellung lautet: Das ist eigentlich kein richtiger Algorithmus, daher soll mit Hilfe von einem Array od. einer struct und einer hexadezimalen Ausgangszahl und dem Linksschiebeoperator ein ordentl. Code erstellt werden mit dem gleichen Effekt.
Wenn ich zu undeutlich war,
dann bitte einfach noch mal nach fragen.
Vielen Dank und viele Grüße
Renate
-
Mehrere Threads für eine Frage zu erstellen ist nicht erwünscht. Hier gehts weiter: http://www.c-plusplus.net/forum/viewtopic-var-t-is-127591.html
Dort kann dir auch geholfen werden wenn du meinen Rat endlich befolgst

MfG SideWinder