从头到尾连续显示行 [英] Display Rows continuously from start to bottom

查看:73
本文介绍了从头到尾连续显示行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


Hello All;

Hello All;


我需要做的是显示来自的1000个日志连续20行的服务器。有没有人知道?

我将来自服务器的数据字符串存储到矢量容器中。并且我必须连续显示从第0行到第19行,即连续总共20行,直到1000个日志完成。

What i need to do is to display 1000 logs coming from the server into 20 rows continuously.Does anyone have any idea??
I am storing the data strings coming from the server into the vector container. And that i have to display continuously from 0th Row row to 19th row i.e total 20 rows continuously, till the 1000 logs are complete.


我有20个行和我需要以格式显示数据,删除或存储从第一行到向量的数据,然后从下到上连续移动,即如果第一行有第999日志,那么第一行后第19行有第980日志现在在
之后,我们必须在向量中存储第999个数据,从底行开始减少日志计数,即第9行,如979,978,977等等。

I have 20 rows and i need to display the data in format like, deleting or storing the data from the first row into the vector and then move it continuously from the bottom to top ie if 1st row has 999th log then after 1st fill 19th row has 980th log now after that we have to store 999th data in vector and decrement log count from bottom row i.e 19th row like 979,978,977 and so on.


如果有人有任何想法,请帮忙。

Please help if anyone has some idea.

推荐答案

关于一个控制台应用程序,其中控制台高20行?

How about a console app where the console is 20 lines high?

你想如何显示这个?你有可以分享的视觉模型吗?  哪些部分给你带来麻烦?  这纯粹是一个设计问题吗?  听起来有点像你想知道是否有适合你需要的控件。

How do you want to display this? Do you have a visual mock-up you can share?  What part is giving you trouble?  Is this purely a design question?  It sounds sort of like maybe you're wondering if there's a control that will suit your needs.

或许你想知道如何实现
循环缓冲区
。  这基本上只是一个包含20个项目的数组,然后是第一个和最后一个项目的索引。

Or maybe you're wondering about how to implement a circular buffer.  Which is basically just an array of 20 items and then the index of the first and last items.


这篇关于从头到尾连续显示行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆