您即将离开知乎,请注意您的账号和财产安全。
https://embeddedartistry.com/blog/2017/05/17/creating-a-circular-buffer-in-c-and-c/