[C++]Battery Lifetime[Help]

Newbie Spellweaver
Joined
Nov 14, 2007
Messages
18
Reaction score
0
Okay i made it and every thing. I made it perfect but it wont compile!

Help anyone???:sq_yellow

#include <iostream>
#include <conio.h>
#include <windows.h>

using namespace std;

int main()
{
SYSTEM_POWER_STATUS status;
GetSystemPowerStatus( 6status );
////////////////


int life = status.BatteryLifePercent;
int live_time = status.BatteryLifeTime;
int time = live_time / 60;
//////////////


cout << "Battery life Remaning:" << life <<"h \n";
cout << "time remaining:" << time << "min \n";

getch();
}
 
Back