Comecando

Started by Anonymous, 09 de February , 2006, 01:07:29 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Anonymous

ajeitei o shutdown... aki tava meio estranho =x

bom, fico assim:

#include
#include
#include
#include


int main()

{
cout<<"|\t--------------------\t|"<cout<<"|\tShutdown for Windows\t|"<cout<<"|\tby Firetail - defcon\t|"<cout<<"|\t--------------------\t|"<
int c;
int tempo;

cout<<"\n[1]Desligar o PC\n[2]Desligar o PC apos um determinado tempo\n[3]Resetar o PC\n\nOpcao escolhida: ";
cin>>c;
switch(c){

case 1:
system("shutdown -s");
break;

case 2:
cout<<"\nEscreva o tempo em segundos:\n"<cin>>tempo;
system("cls");
cout<<"desligando em: ";
for (tempo>1;tempo--;){
Sleep(1000);
cout << tempo << ", ";
}
system("shutdown -s");
break;

case 3:
system("shutdown -r");
break;
}
}

uma coisa... qnd executo du exe n funfa mas qnd executo do compilador funfa

wtf is happening?

Anonymous

Voce poderia tirar esta linha para que ele te desse o tempo e real tima  ;)




Bye