如何在ubuntu上写一个类似sl跑火车指令,“跑甜甜圈”
首先创建.c文件
#include <stdio.h>
#include <math.h>
#include <string.h>
#include <unistd.h>
int main() {
float A = 0, B = 0;
float i, j;
int k;
float z[1760]; //array to store particular value wjhich will be used for creating the shadown/back image of the doughnut
char b[1760]; //array of characters to stor the components that will make up the doughnut
printf("\x1b[2J");
for (;;) {
memset(b, 32, 1760);
memset