逻辑有效,但 [英] Logic Is Working But

查看:85
本文介绍了逻辑有效,但的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此逻辑有效,但是...我希望它删除20秒或更短的文件,我要在非常新的文件上删除",但我不认为它20秒,不知道现在是什么.............

This logic is working but...I want it to remove a file that is 20 seconds or less, I''m getting "Delete" on very new files, but I don''t think its 20 seconds, no idea what it is now.............

age = curTime - fileTime;
if (age <= (_int64)curTime/10000000UL-20)
{
wcout << "Delete:" <<endl;
}
else
{
wcout << "Quit;" <<endl;
}


谢谢.

推荐答案

1.请使用< pre>代码周围的标签;您已经发布了足够的问题来知道这一点.
2.准确说明您要计算的内容以及答案错误的原因;显示不同变量的值.
3.学习使用调试器.
1. Please use <pre> tags around your code; you''ve posted enough questions to know this.
2. Explain exactly what you are trying to calculate and why the answer is wrong; show the values of different variables.
3. Learn to use your debugger.


这篇关于逻辑有效,但的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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