CodePudding user response:
#includeusing namespace std;
Int main ()
{
Int flag=0;
SYSTEMTIME sys.
Int time=0;
Int init_time=0;
For (;; )
{
GetLocalTime (& amp; Sys);
If (init_time==sys. WSecond & amp; & Flag==0)
{
}
The else
{
flag=1;
If (init_time==sys. WSecond & amp; & Flag==1)
{
Init_time=sys. WSecond;
Time++;
flag=0;
}
Init_time=sys. WSecond;
}
If (time==11)
{
Time=0;
Init_time=0;
}
Cout & lt; <"Time:" & lt; }
return 0;
}
CodePudding user response:
The code is visible in the comments section, see very much