2020-12-18 22:35:59 +08:00
|
|
|
// clang -Wall -o demo demo.c mandelbrot.o
|
2020-03-30 22:47:45 +08:00
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
int output(int x) {
|
|
|
|
static char chars[] = " .,-:;i+hHM$*#@ ";
|
|
|
|
if(x < 0) {
|
|
|
|
putchar('\n');
|
|
|
|
} else {
|
|
|
|
if(x < strlen(chars)) {
|
2021-09-20 23:26:04 +08:00
|
|
|
// putchar(chars[x]);
|
|
|
|
printf("%d\n", x);
|
2020-03-30 22:47:45 +08:00
|
|
|
} else {
|
2021-09-19 17:50:01 +08:00
|
|
|
// printf("ERROR\n");
|
2021-09-20 23:26:04 +08:00
|
|
|
printf("%d\n", x);
|
2020-03-30 22:47:45 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
extern int run();
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
run();
|
|
|
|
return 0;
|
|
|
|
}
|