如何在C ++中保存文本文件中的绘图数据 [英] How to save data of a plot in a text file in C++
本文介绍了如何在C ++中保存文本文件中的绘图数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个每隔50秒显示日期(时间和电压)然后清除数据的图,是否有捕获这些数据的方法每50秒
我的尝试:
我还没有尝试了任何方法
Hi,
I have a plot that displays date (Time and Voltage) every 50 seconds then it clears the data, is there a method to capture these data every 50 seconds
What I have tried:
I have not tried any method yet
推荐答案
我想我不理解你的问题。
你可以将数据从变量保存到这个代码的文件夹:
ofstream output(你的路径应该在这里);
string a =数据;
输出<< a;
output.close();
I think I didn't understand your question.
but you can save you data from a variable to a folder by this code:
ofstream output("YOUR PATH SHOULD BE HERE");
string a = "Data";
output << a;
output.close();
这篇关于如何在C ++中保存文本文件中的绘图数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文