#include
#include
#include
using namespace std;
int main()
{
system("COLOR 8F");
SYSTEM_POWER_STATUS status;
GetSystemPowerStatus( &status );
/////////////////////////////
int life = status.BatteryLifePercent;
int live_time = status.BatteryLifeTime;
int time = live_time / 60;
/////////////////////////////
cout <<"Battery Life Remaining : " << life << " %." << endl;
cout <<"Time Remaining : " << time << " minutes " << endl <
cout <<"Enter 1 for more infomation on the creator and the program" << endl << endl << endl;
getch();
if(Info == 1)
{
MoreInfo();
}
else
{
cout << "This program determines the battery life of your laptop computer. " << endl;
cout << "It uses Pointers and includes conio.h and windows.h " << endl;
cout << "Colin is teh sh!t. Praise be him. He is god." << endl << endl << endl;
cout << "Name : Colin Sterbenz" << endl ;
cout << "Allias : DunksnJordans" << endl;
cout << "Junior, Duxbury High School" << endl << endl << endl << endl;
}
system("pause");
return 0;
}
}
Comments (0)
You don't have permission to comment on this page.