Posts tagged local
setting up a proxy server for small building lan
Jul 23rd
Hello,
A month ago I and my friends joined a basic DSL plan with one of internet service providers in my country. Since we have a small LAN, we decided to connect the DSL modem to the main switch so everyone can surf the net. Initially we agree to divide the bill fees equally, but now [...]
get machine local time using c++, windows only
May 1st
hi all,
here are some c++ codes to show local time of the running machine.
download time.cpp
#include <iostream>
#include <windows.h>
using namespace std;
int main(){
SYSTEMTIME time;
GetLocalTime (&time);//(c++)
cout<<time.wHour<<”:”<<time.wMinute<<endl;
cout<<”——————–”<<endl;
system(“time /T”); //(dos)
return 0;
}
