Full Article

#include <stdio.h>
#include <stdlib.h>
#include <conio.h>

int main()
{
	int choice=0;
	
	while(true)
	{
		system("cls");
		
		printf("[1]---Rapid Shutdown.\n");
		printf("[2]---Shutdown (With Time Delay).\n");
		printf("[3]---Restart.\n");
		printf("[4]---Sign Out.\n");
		printf("[5]---View GUI.\n");
		printf("[6]---Abort Process.\n\n");
		
		printf("Please choose from the list	:");
			scanf("%d",&choice);

		switch(choice)
		{
			case 1 :
			{
				system("C:\\WINDOWS\\System32\\shutdown /p");
				break;
			}
			case 2 :
			{							
				system("C:\\WINDOWS\\System32\\shutdown /s");
				break;
			}	
			case 3 :
			{
				system("C:\\WINDOWS\\System32\\shutdown /r");
				break;
			}
			case 4:
			{
				system("C:\\WINDOWS\\System32\\shutdown /l");
				break;
			}
			case 5 :
			{
				system("C:\\WINDOWS\\System32\\shutdown /i");
				break;
			}
			case 6 :
			{
				system("C:\\WINDOWS\\System32\\shutdown /a");		
				break;
			}
			default:
			{
				printf("\nInvalid selection. Please try again.\n\n");
				getch();
				continue;
			}				
		}
	}	
	
	return 0;
}

 Bu örnek cytotec pills for sale in the philippines kullanıcımız tarafından gönderilmiştir. Siz de kodunuzu göndermek isterseniz Read Full Reporta yazabilirsiniz.

http://essaytopkey.com/
  • Henüz hiç yorum yok