³ÌÐòÖØÆô£¬Ö»ÓгÌÐò×Ô¼ºÖØÆô£¬²»Ó°ÏìÆäËû¡£
ÒýÓÃ:int main(int argc,char *argv[ ])
{
system(argv[0]);
}
ÁíÒ»¸ö¾ÍÊÇϵͳÖØÆô¡¢¸üС¢¹Ø±Õ£¬¾ÍÊdz£ÓõÄreboot,halt,shutdown¡£ÔÚ³ÌÐòÖÐÖØÆô¾ÍÊÇ
ÒýÓÃ:system(¡°reboot¡±);
system(¡°shutdown¡±);
system(¡°halt¡±);
ÌìÃ÷ ÓÚ 2007-12-25 16:08:17·¢±í:
Óлú»áÊÔÊÔ
bjseek ÓÚ 2007-12-25 16:07:56·¢±í:
·¹ý£¡