Hi all,
I was working with the 2nd lite-c work shop when it told me to test run the make-shift calculator. It then said "Can't comile". Is there something wrong with my preferences, code? If anyone knows what i'm doing wrong that would be great. Heres the code i'm using:
////////////////////////////////////////////////////////////////////
#include <acknex.h>
#include <default.c>
var a = 0;
var b = 0;
var c = 0;
/////////////////////////////////////////////////////////////////////
PANEL* panDisplay =
{
digits(35, 10, "a = %0.f", *, 1, a);
digits(35, 19, "b = %0.f", *, 1, b);
digits(35, 28, "c = %0.f", *, 1, c);
flags = VISIBLE;
}
/////////////////////////////////////////////////////////////////////
function main()
{
video_mode = 7; // create a program window of 800x600 pixels
screen_color.blue = 150; // and make its background dark blue
while (1)
{
c = a + b;
wait (1);
}
}