F5重新整理以及計算幾秒鐘的程式碼

dream_網路安全發表於2018-11-23

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<iostream>
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<<"你離開時間的總秒數:"<<s<<endl;
 cout<<"你需要輸入的次數:"<<z<<endl;
    system("pause");
}

相關文章