tags:

views:

94

answers:

3

What code do we use to move at a point on the screen in graphics mode(graphics.h)?As in normal we use goto(x,y).

+1  A: 

C, as a language, has no graphics mode.

Yann Ramin
but can use libraries, like "graphics.h" (it seems, a header for a known library...), the OP is not aware likely of the difference (not his fault, I may think), nonetheless a better answer than this can be provided when you realize (as it is easily done) that what he needs is to know "graphics.h" API. Virtual -1 (and citing someone else: this is not an answer, it can be a comment instead)
ShinTakezou
+2  A: 

Don't use graphics.h. It is a very old DOS library from Borland C++ (note that its not C either but C++). Instead pick up some thing like OpenGL or some higher-level library such as SDL.

thyrgle
forced to use graphics.h by teacher
fahad
Curses to your teacher then. You should not use `graphics.h`.
thyrgle
I wonder why a lot of programming course make people use stuffs like "conio.h", "graphics.h"... and the final `system("pause");`... brrr
ShinTakezou
+2  A: 

Since you don't have a choice in the matter, here are some tutorials on drawing stuff with graphics.h:

Part 1 Part 2 Part 3

Jacob