hi all
i don't know if this would be teh correct place to post but i dont know anywhere else...
here goes.
I'm having trouble trying to output a variable using graphics window BGI, i'm using Borland C++ builder....
Code:
#include <iostream>
#include <conio.h>
#include "graphics2.h"
#include <windows.h>
using namespace std;
int main(void)
{
int GraphDriver = 0;
int GraphMode = 0;
GraphDriver = 0;
GraphMode = 0;
int timer;
timer = 5;
initgraph(&GraphDriver, &GraphMode, "", 640, 480);
do
{
Sleep (999);
outtextxy(10,200, timer);/*<<the timer variable is what i need to output but can't*/
timer = (timer - 1);
}while (timer >0);
return = 0;
}
Basically its a 5 second countdown/timer , just can't get teh variable to output on screen.
I'd appreciate any help
Thanks.