雨流量 [英] rainflow count
问题描述
有没有人想分享雨流计数例程与我分享用C ++写的
?
TIA
????
" ; kak3012" < S0 ***** @ student.dtu.dk>在消息新闻中写道:< cm *********** @ gnd.k-net.dk> ...是否有人想分享雨流计数例程来分享和我一起用C ++编写?
当然。发布你的教练的电子邮件地址,我会发一个
全班可以享受。
袜子
" kak3012" < S0 ***** @ student.dtu.dk>在消息中写道
新闻:cm *********** @ gnd.k-net.dk ...
有没有人想分享雨流计数例程与我分享
用C ++编写?
#include< iostream>
#include" sensor.h"
unsigned long rfcount(void)
{
unsigned long count(0);
while(raindrop_detected())
{
++ count;
if(count == 0)
std :: cout<< 雨滴不断失败
"要阅读...... \ n"
程序员必须要
才能上床睡觉...... \ n" ;;
}
返回计数;
}
int main()
{
std :: cout<< rf_count()<< 检测到雨滴 << ''\ n'';
返回0;
}
我居住在华盛顿州,所以这里,这段代码
可能会运行很长时间(并且很可能会唱出
)。此外,某某山的现状
可能会导致结果失真。
-Mike
>
Hi,
does anyone want to share a rainflow count routine to share with me written
in C++?
TIA
????
"kak3012" <s0*****@student.dtu.dk> wrote in message news:<cm***********@gnd.k-net.dk>...does anyone want to share a rainflow count routine to share with me written
in C++?
Sure. Post your instructor''s email address, and I''ll send one so
that the entire class can enjoy.
Socks
"kak3012" <s0*****@student.dtu.dk> wrote in message
news:cm***********@gnd.k-net.dk...Hi,
does anyone want to share a rainflow count routine to share with me written in C++?
#include <iostream>
#include "sensor.h"
unsigned long rfcount(void)
{
unsigned long count(0);
while(raindrop_detected())
{
++count;
if(count == 0)
std::cout << "Raindrops keep failing"
" to be read ...\n"
"The programmer must have"
"gone to bed ...\n";
}
return count;
}
int main()
{
std::cout << rf_count() << "raindrops detected" << ''\n'';
return 0;
}
I live in Washington State, so here, this code
could run for a very long while (and will probably
sing). Also, the current state of a certain mountain
could lead to distortion of the results.
-Mike
这篇关于雨流量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!