move a whole figure horizontally or diagonally

i want to move a pattern like this with function gotoxy()
*
**
***
****
actually the first star moves horizontally and diagonally but i want to move the whole pattern what can i do , i'm a beginner to c++
please help :) .
Topic archived. No new replies allowed.