
Originally Posted by
Adak
Anchee, I've looked at the pdf, and it's not to be done in Turbo C, so drop Turbo C please, immediately!
Do you have a gcc compiler? That's what you'll need (be sure it's the right version, too).
Do you have any code at all yet? Post it up, working or not. This is much more than just coding a program. There is a flow chart to be done, and other paperwork as well.
Put it into high gear now, Anchee, time is short.
i have a gcc compiler... here's my code but it still lacks alot... hope u can help me with this...
Code:
#include <stdio.h>
#include <conio.h>
#define LENGTH 80
#define HEIGHT 20
#define CHARACTER 'X'
int main()
{
int x1, y1, x2, y2;
system("CLS");
printf("x1: ");
scanf("%d", &x1);
printf("y1: ");
scanf("%d", &y1);
printf("x2: ");
scanf("%d", &x2);
printf("y2: ");
scanf("%d", &y2);
system("CLS");
gotoxy(x1,y1);
printf("%c", CHARACTER);
gotoxy(x2,y2);
printf("%c", CHARACTER);
}