i need to have a program with a for loop that has a dot moving up and down and one going right and left. and it needs to like delete the dot after if goes past it...get it? so its a single dot moving right and left and a single dot moving up and down. also this is in C++ so...yea


anyone help?

-Lupusk

here is my code so far it only moves the one dot downward and the right dot only half way accross

Code:
#include <iostream.h>
#include <conio.h>
#include <dos.h>


int main()
{

	clrscr();
	int x, y, xx, yy;


	for (y = 0; y <= 49; y++)
	{


	x = y * 1.5;
	gotoxy(1,y);
	cout << "*" << endl;

	gotoxy(x,1);
	cout << "*";

	delay(10);
	}


	getch();
	return 0;
}