Welcome, Visitor!

Hello, we are really happy that you have reached us. However, since you are viewing the forum as a visitor, you cannot benefit from many features of the forum. How about taking advantage of all the features exclusive to our members by registering? You can register right now, taking just 2 minutes of your time. We would love to see you among us.

C++ Otomatik bilgisayarı kapatan kod

X

xr4zz3rs

Thread Starter
Bu kod belirtilen süre içinde otomatik olarak bilgisayarınızı kapatır. Pek yararlı bir kod olmasa da öğrenebilirsiniz (Emek var beğenin moruq :D) her neyse zaten basit kod belki işinize yarar xD​

C++:
#include <iostream>
#include <cstdlib>
#include "unistd.h"
using namespace std;
int main()
{
unsigned int sure, i=0;
cout<<"Bilgisayar kaç saniye sonra kapatılsın: ";
cin>>sure;
if(sure>=0 && sure<=60)
{
while(i<sure)
{
cout<<i<<endl;
sleep(1);
++i;
}
cout<<"Süre Doldu... Bilgisayar Kapatılıyor..."<<endl;
sleep(1);
system("shutdown -h now");
}
else
{
cout<<"Süre sınırı 0-60 saniyedir..."<<endl;
}
return 0;
}
 
M

Murat

Confirmed Memb.
Joined
Jul 31, 2019
Messages
102
Reaction score
18
Points
18
RC Point
0
bunu arkime atarım yees bebeğim
 
R

RekkaM

Banned Member
Joined
Aug 25, 2019
Messages
193
Reaction score
39
Points
28
RC Point
0
Bu İş Sakat,
Ama Troll için yapanlara KG
:D
Ben bunu kullanmayacağım
 
1

1Jeff

Developer & Coder
Ultra Member
Joined
Oct 20, 2019
Messages
727
Reaction score
431
Points
63
Location
Helsinki
RC Point
0
Troll için enfes olur.^^
 
SPAM IS FORBIDDEN!
  • SPAMMERS ARE BANNED FROM THE FORUM AND CANNOT USE ANY OF THE CHEATS
  • For example: thanks, thx, very good, asdqwe, working, ty and so on!
  • For example: Writing the same message over and over. thanks, thx and so on!
  • Copying and copying someone else's message is prohibited.
  • It is forbidden to send messages to increase the number of comments on threads that you have no knowledge of.
  • Write your own opinion when commenting!
  • If you see spam message, please let us know with the REPORT button!

Theme editor

Top Bottom