注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
Time Series class
Write a time series class that stores and accesses double values based on time_t. The class should be capable of storing up to the most recent 5000 seconds of data. You should provide the following functions:class TimeSeries {
public:
TimeSeries(size_t window);
void AddValue(time_t current_tion is a secondary concern and correctness is essential. The class should be as fast as possible when the value is changed frequently or infrequently.
Final reminder: this class should be fast.
求米求米求米!! |