滚动字幕代码
#include <stdio.h>
#include <string.h>
#include <windows.h>
int main()
{
char str[1024], *buf = new char[512];
gets (str);
system ("cls");
strcat (str, " ");
strcpy (buf, str);
strcat (str, buf);
delete[] buf;
int n = strlen (str) / 2;
int i, j;
while (1)
{
for (i = 0; i < n; i++)
{
system ("cls");
for (j = i; j - i < n; j++)
{
printf ("%c", str[j]);
}
Sleep (100);
printf ("\n");
}
}
return 0;
}全是干货
https://www.luogu.com.cn/paste/7qh2faq8
https://www.luogu.com.cn/paste/t020v5kq
https://www.luogu.com.cn/paste/m37x2dlz
https://www.luogu.com.cn/paste/gji19rf0
https://www.luogu.com.cn/paste/laekdf92
https://www.luogu.com.cn/paste/qsed7eai
https://www.luogu.com.cn/paste/570obu9t
https://www.luogu.com.cn/paste/0d3ezhkg
https://www.luogu.com.cn/paste/rnboji0t
https://www.luogu.com.cn/paste/xnljyjvw
https://www.luogu.com.cn/paste/n3am5sfr
https://www.luogu.com.cn/paste/qv7kp0cj
https://www.luogu.com.cn/paste/vnhscqes
https://www.luogu.com.cn/paste/act93zot
