im not sure why you want it, but heres a infinite loop:
Code:
#include <stdio.h>
int main() {
while(!0)
printf("im a annoying loop, please kill me!\n");
return 0;
}
Is it possible to produce simple graphics or moving strings with C ?
there are alot of graphics libraries, but nothing in c.
moving strings could be faked without a special library.
Code:
#define TIME 1000000000
#include <stdio.h>
#include <string.h>
int main() {
char string[] = "test";
char *print = NULL;
int x = 0;
int y;
while(x < strlen(string)) {
print = &string[x];
printf("%s", print);
for(y = 0; y < TIME; ++y)
;;
system("cls");
++x;
}
return 0;
}