Need HELP NOW with C Programming!

SHT49781

Banned
Jan 30, 2000
354
0
0
i've been trying to find the slope to calculation of the x and y coordiantes. i just cant figure it out. i've been at this for hours. this is my first time programming so i don't know much.

the program needs to work for any dimension (i.e. 100 * 100 or 100 * 300 )

there is a function called DrawLines () in my program. All i need is a yellow diagonal line. Nothing in the program needs revising except for inside that Draw_Lines function.

Draw Lines

if you can e-mail me back the C file at sht49781@yahoo.com or post it here would be very much appreciated.

thanks a lot.
 

Ameesh

Lifer
Apr 3, 2001
23,686
1
0
slope is rise over run, the common formular a line is y = mx + b where m is the slope and b is the y intercept, figure it out from there.