Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  shutdown timer
Language: C/C++
Code:
#include <stdio.h>
#include <stdlib.h>
 
int main()
{
   int i;
   int seconds;
 
   printf("Wie hoch soll der Timer sein? (Angabe in Minuten\n");
   scanf("%i", seconds);
   i = seconds * 60;

   char command[250];
   sprintf(command, "shutdown /s /f /t %i", seconds);
   system(command);

 
   return 0;
}
          
          
          
Comments: