逻辑有效,但

问题描述:

此逻辑有效,但是...我希望它删除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.