绳子长100厘米,并且以10厘米/秒的速度均匀拉伸(起点固定,终点拉伸)蚂蚁从起点向终点方向爬,相对绳子的速度是1厘米/秒
请问蚂蚁最终能爬到绳子终点吗?
如果能爬到,需要多长时间呢?
请问蚂蚁最终能爬到绳子终点吗?
如果能爬到,需要多长时间呢?
解决方案 »
- float数组赋值
- Delphi转入C++ 的困惑,希望各位兄弟帮忙
- 问一个float的问题
- CString::SpanExcluding()函数的功能
- 用什么软件制作CHM帮助文件好?我用visual chm4.3怎么做出来的htm页面图片无法显示?
- 关于拷贝构造函数和运算符重载——为什么视而不见?
- 有谁知道在MFC ActiveX Control编程中如何添加并实现那种可以有好几个值供选择的控件属性?
- 版主,我的问题已经全部解决,再给300分,本想全部给你,但还得留点以后问!^_^
- 为什么对话框显示不出来
- VC++编程时出现“在调用SQLFetchScroll/SQLExtendedFetch之前,没有列被绑定”。。做作业出现的问题,帮帮忙看看。谢啦
- RC1015是什么问题?
- 使用ADO保存和读取SQL Server BLOB 数据的问题
float f_ropeLenth = 100;
float f_ropeStep = 10;
float f_antStep = 1;
int n_Timer;
int GetTimeToEnd(float antStep,float ropeStep,float ropLenth)
{
int Timer = 0;
float ant = 0;
float EndPoint;
while(ant >= ropLenth)
{
EndPoint = ropLenth - ant;
ropLenth += ropeStep;
ant = (EndPoint/ropLenth)*ropStep + antStep;
Timer++;
}
return Timer;
}
while(ant<=ropLenth)