Monday, February 13, 2006

More code

Ok, I didn't work on the programme today, all I've got is:
/* Test of the gotoxy() function */
#include
#include
main()
{
gotoxy(10, 10);
printf("O");
}
This is probably the single least useful program ever written. What does it do? It repositions the cursor on the MS-Dos prompt.
The reason for writing this at all is because currently my gravity simulator only outputs the numbers, and the MS dod prompt can only show 52 lines. I need to output as a graphic, but at the moment I don't know how (It doesn't seem to be in the C version 4 library reference book). One option I've been looking at is a program called Delphi which I got free a while back, but that's another thing to learn.
I had hoped to get it finished today, but it got a lot harder. Hopefully I can get the graphics hooked up before school starts again, then look into calculus.

0 Comments:

Post a Comment

<< Home