Use outtextxy() to give the output at the specific locations given by the coordinates x,y. Its right there in the examples in the links I provided.

When in graphic mode, the screen is divided into coordinates. You set pixel values, add text, add graphics (circles, lines etc) by using the coordinates.

The top left corner of your monitor correspondes to (0,0) i.e at that pixel

x=0 and y=0

on moving right horizontally x increases and on moving down vertically y increases.

You can get the rightmost point of the screen by using the function

int x= getmaxx()

and the bottom most points by using

int y=getmaxy()

remember that each point on the screen is defined by both x and y togther.

Assuming that the rightmost and the bottom most points are 640 and 480 respectively. The location of the center pixel will be

x=320
y=240
which is represented as (320,240).

You can draw a circle with this point as the center or display text starting from this point. Usually if you want to display graphics (text, shapes or anything else) you can do it either by

1. Hit and trial : keep changing the values of x and y till you get the right result or

2. Use some mathematical relationship between the shapes.

I suggest you copy a program and see how the output changes when you change the x and y coordinates.
Try the code given on this page http://www.cs.colorado.edu/~main/cs1300/doc/bgi/line.html
see how the line changes. when you change the parameters for the function line()

Write a C program that should create a 10 element array of random integers (0 to 9). The program should total all of the numbers in the odd positions of the array and compare them with the total of the numbers in the even positions of the array and indicate ...

Hi. so this is actually a continuation from another question of mineHere but i was advised to start a new thread as the original question was already answered.

This is the result of previous question answered :

I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...