F5刷新以及计算几秒钟的代码

F5:

set wshshell=wscript.createobject("wscript.shell")
WshShell.AppActivate"666"
for i=0 to 400
WScript.Sleep 30000
WshShell.SendKeys"{F5}"
WshShell.Sendkeys i
Next

计算几秒钟:

#include
using namespace std;
int main()
{
 int a,b,c;int s,z;
 cout<<"请你输入离开时间(小时):";
 cin>>a;
 cout<<"请输入分钟:";
 cin>>b;
 cout<<"请你输入离开时间(秒数):";
 cin>>c;
 s=a*60*60+b*60;
 z=s/c;
 cout<<"你离开时间的总秒数:"<

你可能感兴趣的:(Windows,一些普通的小玩意)